@@ -362,7 +362,7 @@ void MainWindow::DoCheckProject(ImportProject p)
362362 mIsLogfileLoaded = false ;
363363 if (mProject ) {
364364 std::vector<std::string> v;
365- foreach (const QString &s, mProject ->GetProjectFile ()->GetExcludedPaths ()) {
365+ foreach (const QString &s, mProject ->getProjectFile ()->GetExcludedPaths ()) {
366366 v.push_back (s.toStdString ());
367367 }
368368 p.ignorePaths (v);
@@ -386,7 +386,7 @@ void MainWindow::DoCheckProject(ImportProject p)
386386 checkSettings.force = false ;
387387
388388 if (mProject )
389- qDebug () << " Checking project file" << mProject ->GetProjectFile ()->GetFilename ();
389+ qDebug () << " Checking project file" << mProject ->getProjectFile ()->GetFilename ();
390390
391391 if (!checkSettings.buildDir .empty ()) {
392392 std::list<std::string> sourcefiles;
@@ -409,7 +409,7 @@ void MainWindow::DoCheckFiles(const QStringList &files)
409409 FileList pathList;
410410 pathList.AddPathList (files);
411411 if (mProject ) {
412- pathList.AddExcludeList (mProject ->GetProjectFile ()->GetExcludedPaths ());
412+ pathList.AddExcludeList (mProject ->getProjectFile ()->GetExcludedPaths ());
413413 } else {
414414 EnableProjectActions (false );
415415 }
@@ -441,7 +441,7 @@ void MainWindow::DoCheckFiles(const QStringList &files)
441441 Settings checkSettings = GetCppcheckSettings ();
442442
443443 if (mProject )
444- qDebug () << " Checking project file" << mProject ->GetProjectFile ()->GetFilename ();
444+ qDebug () << " Checking project file" << mProject ->getProjectFile ()->GetFilename ();
445445
446446 if (!checkSettings.buildDir .empty ()) {
447447 std::list<std::string> sourcefiles;
@@ -642,7 +642,7 @@ Library::Error MainWindow::LoadLibrary(Library *library, QString filename)
642642
643643 // Try to load the library from the project folder..
644644 if (mProject ) {
645- QString path = QFileInfo (mProject ->GetProjectFile ()->GetFilename ()).canonicalPath ();
645+ QString path = QFileInfo (mProject ->getProjectFile ()->GetFilename ()).canonicalPath ();
646646 ret = library->load (NULL , (path+" /" +filename).toLatin1 ());
647647 if (ret.errorcode != Library::ErrorCode::FILE_NOT_FOUND)
648648 return ret;
@@ -741,7 +741,7 @@ Settings MainWindow::GetCppcheckSettings()
741741
742742 // If project file loaded, read settings from it
743743 if (mProject ) {
744- ProjectFile *pfile = mProject ->GetProjectFile ();
744+ ProjectFile *pfile = mProject ->getProjectFile ();
745745 QStringList dirs = pfile->GetIncludeDirs ();
746746 AddIncludeDirs (dirs, result);
747747
@@ -934,7 +934,7 @@ void MainWindow::ReCheckSelected(QStringList files, bool all)
934934 FileList pathList;
935935 pathList.AddPathList (files);
936936 if (mProject )
937- pathList.AddExcludeList (mProject ->GetProjectFile ()->GetExcludedPaths ());
937+ pathList.AddExcludeList (mProject ->getProjectFile ()->GetExcludedPaths ());
938938 QStringList fileNames = pathList.GetFileList ();
939939 CheckLockDownUI (); // lock UI while checking
940940 mUI .mResults ->CheckingStarted (fileNames.size ());
@@ -965,7 +965,7 @@ void MainWindow::ReCheck(bool all)
965965 mUI .mResults ->CheckingStarted (files.size ());
966966
967967 if (mProject )
968- qDebug () << " Rechecking project file" << mProject ->GetProjectFile ()->GetFilename ();
968+ qDebug () << " Rechecking project file" << mProject ->getProjectFile ()->GetFilename ();
969969
970970 mThread ->SetCheckFiles (all);
971971 mThread ->Check (GetCppcheckSettings (), all);
@@ -1314,16 +1314,16 @@ void MainWindow::LoadProjectFile(const QString &filePath)
13141314
13151315void MainWindow::CheckProject (Project *project)
13161316{
1317- if (!project->IsOpen ()) {
1318- if (!project->Open ()) {
1317+ if (!project->isOpen ()) {
1318+ if (!project->open ()) {
13191319 delete mProject ;
13201320 mProject = 0 ;
13211321 return ;
13221322 }
13231323 }
13241324
1325- QFileInfo inf (project->Filename ());
1326- const QString rootpath = project->GetProjectFile ()->GetRootPath ();
1325+ QFileInfo inf (project->getFilename ());
1326+ const QString rootpath = project->getProjectFile ()->GetRootPath ();
13271327
13281328 // If the root path is not given or is not "current dir", use project
13291329 // file's location directory as root path
@@ -1334,15 +1334,15 @@ void MainWindow::CheckProject(Project *project)
13341334 else
13351335 mCurrentDirectory = rootpath;
13361336
1337- if (!project->GetProjectFile ()->GetImportProject ().isEmpty ()) {
1337+ if (!project->getProjectFile ()->GetImportProject ().isEmpty ()) {
13381338 ImportProject p;
1339- QString prjfile = inf.canonicalPath () + ' /' + project->GetProjectFile ()->GetImportProject ();
1339+ QString prjfile = inf.canonicalPath () + ' /' + project->getProjectFile ()->GetImportProject ();
13401340 p.import (prjfile.toStdString ());
13411341 DoCheckProject (p);
13421342 return ;
13431343 }
13441344
1345- QStringList paths = project->GetProjectFile ()->GetCheckPaths ();
1345+ QStringList paths = project->getProjectFile ()->GetCheckPaths ();
13461346
13471347 // If paths not given then check the root path (which may be the project
13481348 // file's location, see above). This is to keep the compatibility with
@@ -1383,8 +1383,8 @@ void MainWindow::NewProjectFile()
13831383
13841384 delete mProject ;
13851385 mProject = new Project (filepath, this );
1386- mProject ->Create ();
1387- if (mProject ->Edit ()) {
1386+ mProject ->create ();
1387+ if (mProject ->edit ()) {
13881388 AddProjectMRU (filepath);
13891389 CheckProject (mProject );
13901390 }
@@ -1410,7 +1410,7 @@ void MainWindow::EditProjectFile()
14101410 msg.exec ();
14111411 return ;
14121412 }
1413- if (mProject ->Edit ())
1413+ if (mProject ->edit ())
14141414 CheckProject (mProject );
14151415}
14161416
0 commit comments