gui: ThreadHandler::check() remove unused parameter "all".
Was: threadhandler.cpp:78:58: warning: unused parameter ‘all’ [-Wunused-parameter] void ThreadHandler::check(const Settings &settings, bool all) ^~~
This commit is contained in:
parent
67043b3524
commit
0e40a4cc39
|
@ -415,7 +415,7 @@ void MainWindow::doAnalyzeProject(ImportProject p)
|
|||
if (mProjectFile)
|
||||
mThread->setAddons(mProjectFile->getAddons());
|
||||
mThread->setProject(p);
|
||||
mThread->check(checkSettings, true);
|
||||
mThread->check(checkSettings);
|
||||
}
|
||||
|
||||
void MainWindow::doAnalyzeFiles(const QStringList &files)
|
||||
|
@ -471,7 +471,7 @@ void MainWindow::doAnalyzeFiles(const QStringList &files)
|
|||
}
|
||||
|
||||
mThread->setCheckFiles(true);
|
||||
mThread->check(checkSettings, true);
|
||||
mThread->check(checkSettings);
|
||||
}
|
||||
|
||||
void MainWindow::analyzeCode(const QString& code, const QString& filename)
|
||||
|
@ -975,7 +975,7 @@ void MainWindow::reAnalyzeSelected(QStringList files, bool all)
|
|||
// considered in "Modified Files Check" performed after "Selected Files Check"
|
||||
// TODO: Should we store per file CheckStartTime?
|
||||
QDateTime saveCheckStartTime = mThread->getCheckStartTime();
|
||||
mThread->check(getCppcheckSettings(), all);
|
||||
mThread->check(getCppcheckSettings());
|
||||
mThread->setCheckStartTime(saveCheckStartTime);
|
||||
}
|
||||
|
||||
|
@ -999,7 +999,7 @@ void MainWindow::reAnalyze(bool all)
|
|||
qDebug() << "Rechecking project file" << mProjectFile->getFilename();
|
||||
|
||||
mThread->setCheckFiles(all);
|
||||
mThread->check(getCppcheckSettings(), all);
|
||||
mThread->check(getCppcheckSettings());
|
||||
}
|
||||
|
||||
void MainWindow::clearResults()
|
||||
|
|
|
@ -75,7 +75,7 @@ void ThreadHandler::setCheckFiles(QStringList files)
|
|||
}
|
||||
}
|
||||
|
||||
void ThreadHandler::check(const Settings &settings, bool all)
|
||||
void ThreadHandler::check(const Settings &settings)
|
||||
{
|
||||
if (mResults.getFileCount() == 0 || mRunningThreadCount > 0 || settings.jobs == 0) {
|
||||
qDebug() << "Can't start checking if there's no files to check or if check is in progress.";
|
||||
|
|
|
@ -105,7 +105,7 @@ public:
|
|||
* @param settings Settings for checking
|
||||
* @param all true if all files, false if modified files
|
||||
*/
|
||||
void check(const Settings &settings, bool all);
|
||||
void check(const Settings &settings);
|
||||
|
||||
/**
|
||||
* @brief Set files to check
|
||||
|
|
Loading…
Reference in New Issue