Commit 0ca9afc6 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed cppcheck warning

parent 5812e1d3
......@@ -54,7 +54,7 @@ bool DecimateThread::abort() const
return abort_;
}
DecimateThread::DecimateThread(const Params& _param, QString _jobId, int _objId):
DecimateThread::DecimateThread(const Params& _param, const QString& _jobId, int _objId):
OpenFlipperThread(_jobId), Observer(1),
abort_(false), maxCollapses_(0),
param_(_param), baseDec_(0), objId_(_objId)
......
......@@ -96,7 +96,7 @@ public slots:
public:
void cancel();
DecimateThread(const Params& _param, QString _jobId, int _objId);
DecimateThread(const Params& _param, const QString &_jobId, int _objId);
~DecimateThread();
BaseDecimaterType* baseDecimater();
......
......@@ -479,12 +479,12 @@ void DecimaterPlugin::slot_decimate()
}
void DecimaterPlugin::canceledJob (QString _job )
void DecimaterPlugin::canceledJob (const QString& _job )
{
emit jobCanceled(_job);
}
void DecimaterPlugin::slot_decimate_finished(QString _jobId)
void DecimaterPlugin::slot_decimate_finished(const QString& _jobId)
{
//This function is executed by the main thread! but the sender is the finished thread
DecimateThread* thread = dynamic_cast<DecimateThread*>(sender());
......
......@@ -156,7 +156,7 @@ private slots:
void noguiSupported( ) {} ;
// ProcessInterface
void canceledJob (QString _job );
void canceledJob (const QString &_job );
public :
......@@ -214,7 +214,7 @@ private slots:
/// decimating called from button in toolbox
void slot_decimate();
void slot_decimate_finished(QString _jobId); //postprocess after threads finished
void slot_decimate_finished(const QString &_jobId); //postprocess after threads finished
/// init called from button in toolbox
void slot_initialize();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment