diff --git a/src/errorlogger.cpp b/src/errorlogger.cpp index d96700b1d..172dfeac9 100644 --- a/src/errorlogger.cpp +++ b/src/errorlogger.cpp @@ -128,14 +128,14 @@ std::string ErrorLogger::ErrorMessage::toText() const return text.str(); } -void ErrorLogger::_writemsg(const Tokenizer *tokenizer, const Token *tok, const char severity[], const std::string msg, const std::string &id) +void ErrorLogger::_writemsg(const Tokenizer *tokenizer, const Token *tok, const char severity[], const std::string &msg, const std::string &id) { std::list<const Token *> callstack; callstack.push_back(tok); _writemsg(tokenizer, callstack, severity, msg, id); } -void ErrorLogger::_writemsg(const Tokenizer *tokenizer, const std::list<const Token *> &callstack, const char severity[], const std::string msg, const std::string &id) +void ErrorLogger::_writemsg(const Tokenizer *tokenizer, const std::list<const Token *> &callstack, const char severity[], const std::string &msg, const std::string &id) { std::list<ErrorLogger::ErrorMessage::FileLocation> locationList; for (std::list<const Token *>::const_iterator tok = callstack.begin(); tok != callstack.end(); ++tok) @@ -150,7 +150,7 @@ void ErrorLogger::_writemsg(const Tokenizer *tokenizer, const std::list<const To } -void ErrorLogger::_writemsg(const std::string msg, const std::string &id) +void ErrorLogger::_writemsg(const std::string &msg, const std::string &id) { std::ostringstream xml; xml << "<error"; diff --git a/src/errorlogger.h b/src/errorlogger.h index 2b10c2b25..f6d58d8a9 100644 --- a/src/errorlogger.h +++ b/src/errorlogger.h @@ -491,8 +491,8 @@ public: static std::string callStackToString(const std::list<ErrorLogger::ErrorMessage::FileLocation> &callStack); private: - void _writemsg(const Tokenizer *tokenizer, const Token *tok, const char severity[], const std::string msg, const std::string &id); - void _writemsg(const Tokenizer *tokenizer, const std::list<const Token *> &callstack, const char severity[], const std::string msg, const std::string &id); - void _writemsg(const std::string msg, const std::string &id); + void _writemsg(const Tokenizer *tokenizer, const Token *tok, const char severity[], const std::string &msg, const std::string &id); + void _writemsg(const Tokenizer *tokenizer, const std::list<const Token *> &callstack, const char severity[], const std::string &msg, const std::string &id); + void _writemsg(const std::string &msg, const std::string &id); }; #endif diff --git a/tools/errmsg.cpp b/tools/errmsg.cpp index e4b101cf6..f52a10be3 100644 --- a/tools/errmsg.cpp +++ b/tools/errmsg.cpp @@ -225,9 +225,9 @@ int main() fout << " static std::string callStackToString(const std::list<ErrorLogger::ErrorMessage::FileLocation> &callStack);\n"; fout << "\n"; fout << "private:\n"; - fout << " void _writemsg(const Tokenizer *tokenizer, const Token *tok, const char severity[], const std::string msg, const std::string &id);\n"; - fout << " void _writemsg(const Tokenizer *tokenizer, const std::list<const Token *> &callstack, const char severity[], const std::string msg, const std::string &id);\n"; - fout << " void _writemsg(const std::string msg, const std::string &id);\n"; + fout << " void _writemsg(const Tokenizer *tokenizer, const Token *tok, const char severity[], const std::string &msg, const std::string &id);\n"; + fout << " void _writemsg(const Tokenizer *tokenizer, const std::list<const Token *> &callstack, const char severity[], const std::string &msg, const std::string &id);\n"; + fout << " void _writemsg(const std::string &msg, const std::string &id);\n"; fout << "};\n"; fout << "#endif\n"; std::cout << std::endl;