diff --git a/canframemodel.cpp b/canframemodel.cpp index 57d542d..02fc0cf 100644 --- a/canframemodel.cpp +++ b/canframemodel.cpp @@ -282,8 +282,9 @@ QVariant CANFrameModel::headerData(int section, Qt::Orientation orientation, } -void CANFrameModel::addFrame(CANFrame frame, bool autoRefresh = false) +void CANFrameModel::addFrame(CANFrame& frame, bool autoRefresh = false) { + /*TODO: remove mutex */ mutex.lock(); CANFrame tempFrame; tempFrame = frame; diff --git a/canframemodel.h b/canframemodel.h index f53db11..ddea3ce 100644 --- a/canframemodel.h +++ b/canframemodel.h @@ -46,7 +46,7 @@ public: const QMap *getFiltersReference() const; //this neither public slots: - void addFrame(CANFrame, bool); + void addFrame(CANFrame&, bool); signals: void updatedFiltersList();