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:
Collin Kidder
2015-06-24 20:44:38 -04:00
parent c14f57c98f
commit 1af5c10506
16 changed files with 64 additions and 44 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ class FlowViewWindow : public QDialog
Q_OBJECT
public:
explicit FlowViewWindow(QVector<CANFrame> *frames, QWidget *parent = 0);
explicit FlowViewWindow(const QVector<CANFrame> *frames, QWidget *parent = 0);
~FlowViewWindow();
void showEvent(QShowEvent*);
@@ -38,7 +38,7 @@ private:
Ui::FlowViewWindow *ui;
QList<int> foundID;
QList<CANFrame> frameCache;
QVector<CANFrame> *modelFrames;
const QVector<CANFrame> *modelFrames;
unsigned char refBytes[8];
unsigned char currBytes[8];
int currentPosition;