Fix to make access of canbus frames const correct. It's now not really possible to modify the captured canbus frames from outside the model class that holds them. This is safer and more future proof.
Boring update but it might save head scratching in the future.
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ class FrameSenderWindow : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit FrameSenderWindow(QVector<CANFrame> *frames, QWidget *parent = 0);
|
||||
explicit FrameSenderWindow(const QVector<CANFrame> *frames, QWidget *parent = 0);
|
||||
~FrameSenderWindow();
|
||||
|
||||
private slots:
|
||||
@@ -26,7 +26,7 @@ private:
|
||||
Ui::FrameSenderWindow *ui;
|
||||
QList<FrameSendData> sendingData;
|
||||
QList<CANFrame> frameCache;
|
||||
QVector<CANFrame> *modelFrames;
|
||||
const QVector<CANFrame> *modelFrames;
|
||||
QTimer *intervalTimer;
|
||||
|
||||
void doModifiers(int);
|
||||
|
||||
Reference in New Issue
Block a user