@@ -562,7 +562,7 @@ void MainWindow::saveSettings() const
562562 mUI ->mResults ->saveSettings (mSettings );
563563}
564564
565- void MainWindow::doAnalyzeProject (ImportProject p, const bool doCheckLibrary , const bool doCheckConfiguration )
565+ void MainWindow::doAnalyzeProject (ImportProject p, const bool checkLib , const bool checkConfig )
566566{
567567 Settings checkSettings;
568568 auto supprs = std::make_shared<Suppressions>();
@@ -606,8 +606,8 @@ void MainWindow::doAnalyzeProject(ImportProject p, const bool doCheckLibrary, co
606606
607607 mUI ->mResults ->setCheckDirectory (checkPath);
608608 checkSettings.force = false ;
609- checkSettings.checkLibrary = doCheckLibrary ;
610- checkSettings.checkConfiguration = doCheckConfiguration ;
609+ checkSettings.checkLibrary = checkLib ;
610+ checkSettings.checkConfiguration = checkConfig ;
611611
612612 if (mProjectFile )
613613 qDebug () << " Checking project file" << mProjectFile ->getFilename ();
@@ -634,7 +634,7 @@ void MainWindow::doAnalyzeProject(ImportProject p, const bool doCheckLibrary, co
634634 mUI ->mResults ->setCheckSettings (checkSettings);
635635}
636636
637- void MainWindow::doAnalyzeFiles (const QStringList &files, const bool doCheckLibrary , const bool doCheckConfiguration )
637+ void MainWindow::doAnalyzeFiles (const QStringList &files, const bool checkLib , const bool checkConfig )
638638{
639639 if (files.isEmpty ())
640640 return ;
@@ -675,7 +675,7 @@ void MainWindow::doAnalyzeFiles(const QStringList &files, const bool doCheckLibr
675675 // TODO: lock UI here?
676676 mUI ->mResults ->checkingStarted (fdetails.size ());
677677 mThread ->setFiles (std::move (fdetails));
678- if (mProjectFile && !doCheckConfiguration )
678+ if (mProjectFile && !checkConfig )
679679 mThread ->setAddonsAndTools (mProjectFile ->getAddonsAndTools ());
680680 mThread ->setSuppressions (mProjectFile ? mProjectFile ->getCheckingSuppressions () : QList<SuppressionList::Suppression>());
681681 QDir inf (mCurrentDirectory );
@@ -685,8 +685,8 @@ void MainWindow::doAnalyzeFiles(const QStringList &files, const bool doCheckLibr
685685 checkLockDownUI (); // lock UI while checking
686686
687687 mUI ->mResults ->setCheckDirectory (checkPath);
688- checkSettings.checkLibrary = doCheckLibrary ;
689- checkSettings.checkConfiguration = doCheckConfiguration ;
688+ checkSettings.checkLibrary = checkLib ;
689+ checkSettings.checkConfiguration = checkConfig ;
690690
691691 if (mProjectFile )
692692 qDebug () << " Checking project file" << mProjectFile ->getFilename ();
@@ -1856,7 +1856,7 @@ bool MainWindow::loadLastResults()
18561856 return true ;
18571857}
18581858
1859- void MainWindow::analyzeProject (const ProjectFile *projectFile, const QStringList& recheckFiles, const bool doCheckLibrary , const bool doCheckConfiguration )
1859+ void MainWindow::analyzeProject (const ProjectFile *projectFile, const QStringList& recheckFiles, const bool checkLib , const bool checkConfig )
18601860{
18611861 Settings::terminate (false );
18621862
@@ -1985,7 +1985,7 @@ void MainWindow::analyzeProject(const ProjectFile *projectFile, const QStringLis
19851985 msg.exec ();
19861986 return ;
19871987 }
1988- doAnalyzeProject (p, doCheckLibrary, doCheckConfiguration ); // TODO: avoid copy
1988+ doAnalyzeProject (p, checkLib, checkConfig ); // TODO: avoid copy
19891989 return ;
19901990 }
19911991
@@ -1998,7 +1998,7 @@ void MainWindow::analyzeProject(const ProjectFile *projectFile, const QStringLis
19981998 if (paths.isEmpty ()) {
19991999 paths << mCurrentDirectory ;
20002000 }
2001- doAnalyzeFiles (paths, doCheckLibrary, doCheckConfiguration );
2001+ doAnalyzeFiles (paths, checkLib, checkConfig );
20022002}
20032003
20042004void MainWindow::newProjectFile ()
0 commit comments