Skip to content

Commit 96a1c6d

Browse files
committed
Rename errorlist=>mShowAllErrors
1 parent a6194b8 commit 96a1c6d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cli/cppcheckexecutor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
/*static*/ FILE* CppCheckExecutor::mExceptionOutput = stdout;
8080

8181
CppCheckExecutor::CppCheckExecutor()
82-
: mSettings(nullptr), latestProgressOutputTime(0), mErrorOutput(nullptr), errorlist(false)
82+
: mSettings(nullptr), latestProgressOutputTime(0), mErrorOutput(nullptr), mShowAllErrors(false)
8383
{
8484
}
8585

@@ -105,7 +105,7 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
105105
}
106106

107107
if (parser.getShowErrorMessages()) {
108-
errorlist = true;
108+
mShowAllErrors = true;
109109
std::cout << ErrorLogger::ErrorMessage::getXMLHeader();
110110
cppcheck->getErrorMessages();
111111
std::cout << ErrorLogger::ErrorMessage::getXMLFooter() << std::endl;
@@ -1054,7 +1054,7 @@ void CppCheckExecutor::reportStatus(std::size_t fileindex, std::size_t filecount
10541054

10551055
void CppCheckExecutor::reportErr(const ErrorLogger::ErrorMessage &msg)
10561056
{
1057-
if (errorlist) {
1057+
if (mShowAllErrors) {
10581058
reportOut(msg.toXML());
10591059
} else if (mSettings->xml) {
10601060
reportErr(msg.toXML());

cli/cppcheckexecutor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class CppCheckExecutor : public ErrorLogger {
190190
/**
191191
* Has --errorlist been given?
192192
*/
193-
bool errorlist;
193+
bool mShowAllErrors;
194194
};
195195

196196
#endif // CPPCHECKEXECUTOR_H

0 commit comments

Comments
 (0)