Fixed compiler errors

This commit is contained in:
Daniel Marjamäki 2012-06-20 17:39:31 +02:00
parent 3d0e090a13
commit 956a37a382
3 changed files with 5 additions and 3 deletions

View File

@ -267,7 +267,7 @@ void CppCheckExecutor::reportProgress(const std::string &filename, const char st
void CppCheckExecutor::reportInfo(const ErrorLogger::ErrorMessage &msg)
{
reportOut(msg.toXML(false, _settings._xml_version));
reportOut(msg.toXML(false, _settings->_xml_version));
}
void CppCheckExecutor::reportStatus(size_t fileindex, size_t filecount, size_t sizedone, size_t sizetotal)

View File

@ -286,7 +286,9 @@ public:
* Output information messages.
* @param msg Location and other information about the found error.
*/
virtual void reportInfo(const ErrorLogger::ErrorMessage &msg) = 0;
virtual void reportInfo(const ErrorLogger::ErrorMessage &msg) {
reportErr(msg);
}
/**
* Report list of unmatched suppressions

View File

@ -2100,7 +2100,7 @@ void Preprocessor::missingInclude(const std::string &filename, unsigned int line
const std::string id = userheader ? "missingInclude" : "debug";
ErrorLogger::ErrorMessage errmsg(locationList, severity, "Include file: \"" + header + "\" not found.", id, false);
errmsg.file0 = file0;
errorLogger->reportInfo(errmsg);
_errorLogger->reportInfo(errmsg);
}
/**