diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 3e2e5f957..575a73337 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -60,7 +60,7 @@ CppCheck::CppCheck(ErrorLogger &errorLogger, bool useGlobalSuppressions) CppCheck::~CppCheck() { - while (!fileInfo.empty()) { + while (!mFileInfo.empty()) { delete fileInfo.back(); fileInfo.pop_back(); } @@ -555,7 +555,7 @@ void CppCheck::checkNormalTokens(const Tokenizer &tokenizer) for (std::list::const_iterator it = Check::instances().begin(); it != Check::instances().end(); ++it) { Check::FileInfo *fi = (*it)->getFileInfo(&tokenizer, &mSettings); if (fi != nullptr) { - fileInfo.push_back(fi); + mFileInfo.push_back(fi); mAnalyzerInformation.setFileInfo((*it)->name(), fi->toString()); } } @@ -829,7 +829,7 @@ bool CppCheck::analyseWholeProgram() bool errors = false; // Analyse the tokens for (std::list::const_iterator it = Check::instances().begin(); it != Check::instances().end(); ++it) - errors |= (*it)->analyseWholeProgram(fileInfo, mSettings, *this); + errors |= (*it)->analyseWholeProgram(mFileInfo, mSettings, *this); return errors && (exitcode > 0); } diff --git a/lib/cppcheck.h b/lib/cppcheck.h index 01c87d777..10544dfd0 100644 --- a/lib/cppcheck.h +++ b/lib/cppcheck.h @@ -224,7 +224,7 @@ private: bool _simplify; /** File info used for whole program analysis */ - std::list fileInfo; + std::list mFileInfo; AnalyzerInformation mAnalyzerInformation; };