From b992b4a4f0714aec6224cb38386d8bfe5031ffda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 16 Jun 2018 23:31:16 +0200 Subject: [PATCH] Renamed _errorList --- lib/cppcheck.cpp | 6 +++--- lib/cppcheck.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 0ca6b199b..367a8719d 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -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); diff --git a/lib/cppcheck.h b/lib/cppcheck.h index c0c6e8d8a..7b6f2a8a2 100644 --- a/lib/cppcheck.h +++ b/lib/cppcheck.h @@ -198,7 +198,7 @@ private: */ virtual void reportOut(const std::string &outmsg) override; - std::list _errorList; + std::list mErrorList; Settings mSettings; void reportProgress(const std::string &filename, const char stage[], const std::size_t value) override;