@@ -377,7 +377,7 @@ void MainWindow::doCheckProject(ImportProject p)
377377
378378 QDir inf (mCurrentDirectory );
379379 const QString checkPath = inf.canonicalPath ();
380- SetPath (SETTINGS_LAST_CHECK_PATH, checkPath);
380+ setPath (SETTINGS_LAST_CHECK_PATH, checkPath);
381381
382382 checkLockDownUI (); // lock UI while checking
383383
@@ -433,7 +433,7 @@ void MainWindow::doCheckFiles(const QStringList &files)
433433 mThread ->SetFiles (fileNames);
434434 QDir inf (mCurrentDirectory );
435435 const QString checkPath = inf.canonicalPath ();
436- SetPath (SETTINGS_LAST_CHECK_PATH, checkPath);
436+ setPath (SETTINGS_LAST_CHECK_PATH, checkPath);
437437
438438 checkLockDownUI (); // lock UI while checking
439439
@@ -501,7 +501,7 @@ QStringList MainWindow::selectFilesToCheck(QFileDialog::FileMode mode)
501501
502502 selected = QFileDialog::getOpenFileNames (this ,
503503 tr (" Select files to check" ),
504- GetPath (SETTINGS_LAST_CHECK_PATH),
504+ getPath (SETTINGS_LAST_CHECK_PATH),
505505 tr (" C/C++ Source, Compile database, Visual Studio (%1 %2 *.sln *.vcxproj)" )
506506 .arg (FileList::getDefaultFilters ().join (" " ))
507507 .arg (compile_commands_json));
@@ -515,7 +515,7 @@ QStringList MainWindow::selectFilesToCheck(QFileDialog::FileMode mode)
515515 } else if (mode == QFileDialog::DirectoryOnly) {
516516 QString dir = QFileDialog::getExistingDirectory (this ,
517517 tr (" Select directory to check" ),
518- GetPath (SETTINGS_LAST_CHECK_PATH));
518+ getPath (SETTINGS_LAST_CHECK_PATH));
519519 if (!dir.isEmpty ()) {
520520 qDebug () << " Setting current directory to: " << dir;
521521 mCurrentDirectory = dir;
@@ -525,7 +525,7 @@ QStringList MainWindow::selectFilesToCheck(QFileDialog::FileMode mode)
525525 }
526526 }
527527
528- SetPath (SETTINGS_LAST_CHECK_PATH, mCurrentDirectory );
528+ setPath (SETTINGS_LAST_CHECK_PATH, mCurrentDirectory );
529529
530530 return selected;
531531}
@@ -1002,7 +1002,7 @@ void MainWindow::openResults()
10021002 const QString filter (tr (" XML files (*.xml)" ));
10031003 QString selectedFile = QFileDialog::getOpenFileName (this ,
10041004 tr (" Open the report file" ),
1005- GetPath (SETTINGS_LAST_RESULT_PATH),
1005+ getPath (SETTINGS_LAST_RESULT_PATH),
10061006 filter,
10071007 &selectedFilter);
10081008
@@ -1021,7 +1021,7 @@ void MainWindow::loadResults(const QString selectedFile)
10211021 mUI .mActionRecheckModified ->setEnabled (false );
10221022 mUI .mActionRecheckAll ->setEnabled (false );
10231023 mUI .mResults ->ReadErrorsXml (selectedFile);
1024- SetPath (SETTINGS_LAST_RESULT_PATH, selectedFile);
1024+ setPath (SETTINGS_LAST_RESULT_PATH, selectedFile);
10251025 }
10261026}
10271027
@@ -1160,7 +1160,7 @@ void MainWindow::save()
11601160 const QString filter (tr (" XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)" ));
11611161 QString selectedFile = QFileDialog::getSaveFileName (this ,
11621162 tr (" Save the report file" ),
1163- GetPath (SETTINGS_LAST_RESULT_PATH),
1163+ getPath (SETTINGS_LAST_RESULT_PATH),
11641164 filter,
11651165 &selectedFilter);
11661166
@@ -1195,7 +1195,7 @@ void MainWindow::save()
11951195 }
11961196
11971197 mUI .mResults ->Save (selectedFile, type);
1198- SetPath (SETTINGS_LAST_RESULT_PATH, selectedFile);
1198+ setPath (SETTINGS_LAST_RESULT_PATH, selectedFile);
11991199 }
12001200}
12011201
@@ -1273,13 +1273,13 @@ void MainWindow::openProjectFile()
12731273 const QString filter = tr (" Project files (*.cppcheck);;All files(*.*)" );
12741274 const QString filepath = QFileDialog::getOpenFileName (this ,
12751275 tr (" Select Project File" ),
1276- GetPath (SETTINGS_LAST_PROJECT_PATH),
1276+ getPath (SETTINGS_LAST_PROJECT_PATH),
12771277 filter);
12781278
12791279 if (!filepath.isEmpty ()) {
12801280 const QFileInfo fi (filepath);
12811281 if (fi.exists () && fi.isFile () && fi.isReadable ()) {
1282- SetPath (SETTINGS_LAST_PROJECT_PATH, filepath);
1282+ setPath (SETTINGS_LAST_PROJECT_PATH, filepath);
12831283 loadProjectFile (filepath);
12841284 }
12851285 }
@@ -1367,13 +1367,13 @@ void MainWindow::newProjectFile()
13671367 const QString filter = tr (" Project files (*.cppcheck);;All files(*.*)" );
13681368 QString filepath = QFileDialog::getSaveFileName (this ,
13691369 tr (" Select Project Filename" ),
1370- GetPath (SETTINGS_LAST_PROJECT_PATH),
1370+ getPath (SETTINGS_LAST_PROJECT_PATH),
13711371 filter);
13721372
13731373 if (filepath.isEmpty ())
13741374 return ;
13751375
1376- SetPath (SETTINGS_LAST_PROJECT_PATH, filepath);
1376+ setPath (SETTINGS_LAST_PROJECT_PATH, filepath);
13771377
13781378 enableProjectActions (true );
13791379 QFileInfo inf (filepath);
0 commit comments