GUI: Rename methods in CheckThread

This commit is contained in:
Daniel Marjamäki 2017-07-28 05:26:11 +02:00
parent 5ed4c7f3ea
commit 8bd2531603
3 changed files with 6 additions and 6 deletions

View File

@ -36,14 +36,14 @@ CheckThread::~CheckThread()
//dtor //dtor
} }
void CheckThread::Check(const Settings &settings) void CheckThread::check(const Settings &settings)
{ {
mFiles.clear(); mFiles.clear();
mCppcheck.settings() = settings; mCppcheck.settings() = settings;
start(); start();
} }
void CheckThread::AnalyseWholeProgram(const QStringList &files) void CheckThread::analyseWholeProgram(const QStringList &files)
{ {
mFiles = files; mFiles = files;
mAnalyseWholeProgram = true; mAnalyseWholeProgram = true;

View File

@ -44,13 +44,13 @@ public:
* *
* @param settings settings for cppcheck * @param settings settings for cppcheck
*/ */
void Check(const Settings &settings); void check(const Settings &settings);
/** /**
* @brief Run whole program analysis * @brief Run whole program analysis
* @param files All files * @param files All files
*/ */
void AnalyseWholeProgram(const QStringList &files); void analyseWholeProgram(const QStringList &files);
/** /**
* @brief method that is run in a thread * @brief method that is run in a thread

View File

@ -91,7 +91,7 @@ void ThreadHandler::Check(const Settings &settings, bool all)
} }
for (int i = 0; i < mRunningThreadCount; i++) { for (int i = 0; i < mRunningThreadCount; i++) {
mThreads[i]->Check(settings); mThreads[i]->check(settings);
} }
// Date and time when checking starts.. // Date and time when checking starts..
@ -148,7 +148,7 @@ void ThreadHandler::RemoveThreads()
void ThreadHandler::ThreadDone() void ThreadHandler::ThreadDone()
{ {
if (mRunningThreadCount == 1 && mAnalyseWholeProgram) { if (mRunningThreadCount == 1 && mAnalyseWholeProgram) {
mThreads[0]->AnalyseWholeProgram(mLastFiles); mThreads[0]->analyseWholeProgram(mLastFiles);
mAnalyseWholeProgram = false; mAnalyseWholeProgram = false;
return; return;
} }