diff --git a/gui/checkthread.cpp b/gui/checkthread.cpp index 0ec23ca27..d0bfe7987 100644 --- a/gui/checkthread.cpp +++ b/gui/checkthread.cpp @@ -35,7 +35,7 @@ CheckThread::~CheckThread() //dtor } -void CheckThread::Check(Settings settings) +void CheckThread::Check(const Settings &settings) { mCppcheck.settings(settings); start(); diff --git a/gui/checkthread.h b/gui/checkthread.h index e719b3dda..d797577ce 100644 --- a/gui/checkthread.h +++ b/gui/checkthread.h @@ -44,7 +44,7 @@ public: * * @param settings settings for cppcheck */ - void Check(Settings settings); + void Check(const Settings &settings); /** * @brief method that is run in a thread