Renamed _errorList

This commit is contained in:
Daniel Marjamäki 2018-06-16 23:31:16 +02:00
parent d9aeeb1d09
commit b992b4a4f0
2 changed files with 4 additions and 4 deletions

View File

@ -494,7 +494,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
reportUnmatchedSuppressions(mSettings.nomsg.getUnmatchedLocalSuppressions(filename, isUnusedFunctionCheckEnabled()));
}
_errorList.clear();
mErrorList.clear();
if (internalErrorFound && (exitcode==0)) {
exitcode=1;
}
@ -756,7 +756,7 @@ void CppCheck::reportErr(const ErrorLogger::ErrorMessage &msg)
return;
// Alert only about unique errors
if (std::find(_errorList.begin(), _errorList.end(), errmsg) != _errorList.end())
if (std::find(mErrorList.begin(), mErrorList.end(), errmsg) != mErrorList.end())
return;
const Suppressions::ErrorMessage errorMessage = msg.toSuppressionsErrorMessage();
@ -772,7 +772,7 @@ void CppCheck::reportErr(const ErrorLogger::ErrorMessage &msg)
if (!mSettings.nofail.isSuppressed(errorMessage) && (_useGlobalSuppressions || !mSettings.nomsg.isSuppressed(errorMessage)))
exitcode = 1;
_errorList.push_back(errmsg);
mErrorList.push_back(errmsg);
mErrorLogger.reportErr(msg);
analyzerInformation.reportErr(msg, mSettings.verbose);

View File

@ -198,7 +198,7 @@ private:
*/
virtual void reportOut(const std::string &outmsg) override;
std::list<std::string> _errorList;
std::list<std::string> mErrorList;
Settings mSettings;
void reportProgress(const std::string &filename, const char stage[], const std::size_t value) override;