Skip to content

Commit

Permalink
change a method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
canpadawan committed Jun 15, 2016
1 parent ae7dbd4 commit fd672de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion canframemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion canframemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CANFrameModel: public QAbstractTableModel
const QMap<int, bool> *getFiltersReference() const; //this neither

public slots:
void addFrame(CANFrame, bool);
void addFrame(CANFrame&, bool);

signals:
void updatedFiltersList();
Expand Down

0 comments on commit fd672de

Please sign in to comment.