From fd672de5c5d4b230e4baecbc5b54f6b047803bc1 Mon Sep 17 00:00:00 2001 From: canpadawan Date: Wed, 15 Jun 2016 18:43:17 +0200 Subject: [PATCH] change a method signature --- canframemodel.cpp | 3 ++- canframemodel.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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();