From 05adb285c52694729044faa5fb579fc34f2056e1 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Wed, 14 Jul 2010 17:40:18 +0300 Subject: [PATCH] Rename Severity::stringify() to Severity::toString(). --- lib/check.h | 2 +- lib/checkmemoryleak.cpp | 2 +- lib/checkunusedfunctions.cpp | 2 +- lib/errorlogger.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/check.h b/lib/check.h index 7bcb7bcf7..ab9c53414 100644 --- a/lib/check.h +++ b/lib/check.h @@ -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 diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 98fe57dfb..58cdbfc07 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -325,7 +325,7 @@ void CheckMemoryLeak::reportErr(const std::list &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); diff --git a/lib/checkunusedfunctions.cpp b/lib/checkunusedfunctions.cpp index 6f9c3e6f3..bebfb2d9f 100644 --- a/lib/checkunusedfunctions.cpp +++ b/lib/checkunusedfunctions.cpp @@ -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 diff --git a/lib/errorlogger.h b/lib/errorlogger.h index b276427da..c5d39bf59 100644 --- a/lib/errorlogger.h +++ b/lib/errorlogger.h @@ -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) {