Rename Severity::stringify() to Severity::toString().
This commit is contained in:
parent
3716b3f9d8
commit
05adb285c5
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue