Skip to content

Commit

Permalink
Rename _errorList=>mShownErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Jul 15, 2019
1 parent 5037ad3 commit a6194b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/cppcheckexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion cli/cppcheckexecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class CppCheckExecutor : public ErrorLogger {
/**
* Used to filter out duplicate error messages.
*/
std::set<std::string> _errorList;
std::set<std::string> mShownErrors;

/**
* Filename associated with size of file
Expand Down

0 comments on commit a6194b8

Please sign in to comment.