Rename Severity::stringify() to Severity::toString().

This commit is contained in:
Kimmo Varis 2010-07-14 17:40:18 +03:00
parent 3716b3f9d8
commit 05adb285c5
4 changed files with 4 additions and 4 deletions

View File

@ -150,7 +150,7 @@ protected:
locationList.push_back(loc);
}
const ErrorLogger::ErrorMessage errmsg(locationList, Severity::stringify(severity), msg, id);
const ErrorLogger::ErrorMessage errmsg(locationList, Severity::toString(severity), msg, id);
if (_errorLogger)
_errorLogger->reportErr(errmsg);
else

View File

@ -325,7 +325,7 @@ void CheckMemoryLeak::reportErr(const std::list<const Token *> &callstack, Sever
locations.push_back(loc);
}
const ErrorLogger::ErrorMessage errmsg(locations, Severity::stringify(severity), msg, id);
const ErrorLogger::ErrorMessage errmsg(locations, Severity::toString(severity), msg, id);
if (errorLogger)
errorLogger->reportErr(errmsg);

View File

@ -192,7 +192,7 @@ void CheckUnusedFunctions::unusedFunctionError(ErrorLogger * const errorLogger,
locationList.push_back(fileLoc);
}
const ErrorLogger::ErrorMessage errmsg(locationList, Severity::stringify(Severity::style), "The function '" + funcname + "' is never used", "unusedFunction");
const ErrorLogger::ErrorMessage errmsg(locationList, Severity::toString(Severity::style), "The function '" + funcname + "' is never used", "unusedFunction");
if (errorLogger)
errorLogger->reportErr(errmsg);
else

View File

@ -34,7 +34,7 @@ class Severity
{
public:
enum SeverityType { error, style };
static std::string stringify(SeverityType severity)
static std::string toString(SeverityType severity)
{
switch (severity)
{