Skip to content
Snippets Groups Projects
Commit 3df314ba authored by Victor Poughon's avatar Victor Poughon
Browse files

RFC-91: code review: override, const and m_ prefix

parent a6452090
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ public:
itkNewMacro(Self);
// Overwrite this to provide custom formatting of log entries
std::string BuildFormattedEntry(itk::Logger::PriorityLevelType, std::string const&);
std::string BuildFormattedEntry(itk::Logger::PriorityLevelType, std::string const&) ITK_OVERRIDE;
protected:
Logger();
......
......@@ -45,7 +45,7 @@ Logger::~Logger()
std::string Logger::BuildFormattedEntry(itk::Logger::PriorityLevelType level, std::string const & content)
{
static std::string m_LevelString[] = { "(MUSTFLUSH)", "(FATAL)", "(CRITICAL)",
static const std::string levelString[] = { "(MUSTFLUSH)", "(FATAL)", "(CRITICAL)",
"(WARNING)", "(INFO)", "(DEBUG)", "(NOTSET)" };
std::ostringstream s;
......@@ -63,7 +63,7 @@ std::string Logger::BuildFormattedEntry(itk::Logger::PriorityLevelType level, st
break;
}
}
s << " " << m_LevelString[level] << ": " << content;
s << " " << levelString[level] << ": " << content;
return s.str();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment