From 96a1c6dec59579a83d4db72ce6cc4e196c53621a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 15 Jul 2019 18:31:12 +0200 Subject: [PATCH] Rename errorlist=>mShowAllErrors --- cli/cppcheckexecutor.cpp | 6 +++--- cli/cppcheckexecutor.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 88c5b0983..57daaafc1 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -79,7 +79,7 @@ /*static*/ FILE* CppCheckExecutor::mExceptionOutput = stdout; CppCheckExecutor::CppCheckExecutor() - : mSettings(nullptr), latestProgressOutputTime(0), mErrorOutput(nullptr), errorlist(false) + : mSettings(nullptr), latestProgressOutputTime(0), mErrorOutput(nullptr), mShowAllErrors(false) { } @@ -105,7 +105,7 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c } if (parser.getShowErrorMessages()) { - errorlist = true; + mShowAllErrors = true; std::cout << ErrorLogger::ErrorMessage::getXMLHeader(); cppcheck->getErrorMessages(); std::cout << ErrorLogger::ErrorMessage::getXMLFooter() << std::endl; @@ -1054,7 +1054,7 @@ void CppCheckExecutor::reportStatus(std::size_t fileindex, std::size_t filecount void CppCheckExecutor::reportErr(const ErrorLogger::ErrorMessage &msg) { - if (errorlist) { + if (mShowAllErrors) { reportOut(msg.toXML()); } else if (mSettings->xml) { reportErr(msg.toXML()); diff --git a/cli/cppcheckexecutor.h b/cli/cppcheckexecutor.h index a41c89616..08d639145 100644 --- a/cli/cppcheckexecutor.h +++ b/cli/cppcheckexecutor.h @@ -190,7 +190,7 @@ private: /** * Has --errorlist been given? */ - bool errorlist; + bool mShowAllErrors; }; #endif // CPPCHECKEXECUTOR_H