diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 3c66f59ac..88c5b0983 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -996,10 +996,10 @@ static inline std::string ansiToOEM(const std::string &msg, bool doConvert) void CppCheckExecutor::reportErr(const std::string &errmsg) { // Alert only about unique errors - if (_errorList.find(errmsg) != _errorList.end()) + if (mShownErrors.find(errmsg) != mShownErrors.end()) return; - _errorList.insert(errmsg); + mShownErrors.insert(errmsg); if (mErrorOutput) *mErrorOutput << errmsg << std::endl; else { diff --git a/cli/cppcheckexecutor.h b/cli/cppcheckexecutor.h index 6fed8829c..a41c89616 100644 --- a/cli/cppcheckexecutor.h +++ b/cli/cppcheckexecutor.h @@ -165,7 +165,7 @@ private: /** * Used to filter out duplicate error messages. */ - std::set _errorList; + std::set mShownErrors; /** * Filename associated with size of file