Rename errorOutput=>mErrorOutput
This commit is contained in:
parent
876d8c9829
commit
122ae198b7
|
@ -79,13 +79,13 @@
|
||||||
/*static*/ FILE* CppCheckExecutor::mExceptionOutput = stdout;
|
/*static*/ FILE* CppCheckExecutor::mExceptionOutput = stdout;
|
||||||
|
|
||||||
CppCheckExecutor::CppCheckExecutor()
|
CppCheckExecutor::CppCheckExecutor()
|
||||||
: _settings(nullptr), latestProgressOutputTime(0), errorOutput(nullptr), errorlist(false)
|
: _settings(nullptr), latestProgressOutputTime(0), mErrorOutput(nullptr), errorlist(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
CppCheckExecutor::~CppCheckExecutor()
|
CppCheckExecutor::~CppCheckExecutor()
|
||||||
{
|
{
|
||||||
delete errorOutput;
|
delete mErrorOutput;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* const argv[])
|
bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* const argv[])
|
||||||
|
@ -851,7 +851,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
|
||||||
latestProgressOutputTime = std::time(nullptr);
|
latestProgressOutputTime = std::time(nullptr);
|
||||||
|
|
||||||
if (!settings.outputFile.empty()) {
|
if (!settings.outputFile.empty()) {
|
||||||
errorOutput = new std::ofstream(settings.outputFile);
|
mErrorOutput = new std::ofstream(settings.outputFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.xml) {
|
if (settings.xml) {
|
||||||
|
@ -1000,8 +1000,8 @@ void CppCheckExecutor::reportErr(const std::string &errmsg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_errorList.insert(errmsg);
|
_errorList.insert(errmsg);
|
||||||
if (errorOutput)
|
if (mErrorOutput)
|
||||||
*errorOutput << errmsg << std::endl;
|
*mErrorOutput << errmsg << std::endl;
|
||||||
else {
|
else {
|
||||||
std::cerr << ansiToOEM(errmsg, (_settings == nullptr) ? true : !_settings->xml) << std::endl;
|
std::cerr << ansiToOEM(errmsg, (_settings == nullptr) ? true : !_settings->xml) << std::endl;
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,7 +185,7 @@ private:
|
||||||
/**
|
/**
|
||||||
* Error output
|
* Error output
|
||||||
*/
|
*/
|
||||||
std::ofstream *errorOutput;
|
std::ofstream *mErrorOutput;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Has --errorlist been given?
|
* Has --errorlist been given?
|
||||||
|
|
Loading…
Reference in New Issue