Skip to content

Commit 27936a9

Browse files
committed
GUI: Small cleanup - use const reference.
1 parent fab16c4 commit 27936a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gui/threadhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void ThreadHandler::SetFiles(const QStringList &files)
4848
mLastFiles = files;
4949
}
5050

51-
void ThreadHandler::Check(Settings settings, bool recheck)
51+
void ThreadHandler::Check(const Settings &settings, bool recheck)
5252
{
5353
if (recheck && mRunningThreadCount == 0)
5454
{

gui/threadhandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class ThreadHandler : public QObject
8888
* @param settings Settings for checking
8989
* @param recheck Should we reuse the files we checked earleir
9090
*/
91-
void Check(Settings settings, bool recheck);
91+
void Check(const Settings &settings, bool recheck);
9292

9393
/**
9494
* @brief Is checking running?

0 commit comments

Comments
 (0)