change a method signature

This commit is contained in:
canpadawan
2016-06-15 18:43:17 +02:00
parent ae7dbd4a84
commit fd672de5c5
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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;
+1 -1
View File
@@ -46,7 +46,7 @@ public:
const QMap<int, bool> *getFiltersReference() const; //this neither
public slots:
void addFrame(CANFrame, bool);
void addFrame(CANFrame&, bool);
signals:
void updatedFiltersList();