From 7967c3f3ef72d7fcf08ae8f91cfc9c8c86ba10e7 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@cnes.fr> Date: Wed, 21 Feb 2018 13:40:06 +0100 Subject: [PATCH] STY: Small fixes in otb::Logger class --- Modules/Core/Common/include/otbLogger.h | 6 +++--- Modules/Core/Common/src/otbLogger.cxx | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Modules/Core/Common/include/otbLogger.h b/Modules/Core/Common/include/otbLogger.h index 32b34b0635..047c225f76 100644 --- a/Modules/Core/Common/include/otbLogger.h +++ b/Modules/Core/Common/include/otbLogger.h @@ -42,15 +42,15 @@ public: typedef itk::SmartPointer< Self > Pointer; typedef itk::SmartPointer< const Self > ConstPointer; - itkTypeMacro(Logger, Object); + itkTypeMacro(Logger, itk::Logger); itkNewMacro(Self); // Overwrite this to provide custom formatting of log entries - std::string BuildFormattedEntry(itk::Logger::PriorityLevelType, std::string const&) ITK_OVERRIDE; + virtual std::string BuildFormattedEntry(itk::Logger::PriorityLevelType, std::string const&) ITK_OVERRIDE; protected: Logger(); - virtual ~Logger(); + virtual ~Logger() ITK_OVERRIDE; }; // class Logger } // namespace otb diff --git a/Modules/Core/Common/src/otbLogger.cxx b/Modules/Core/Common/src/otbLogger.cxx index f7994eed4d..09f08cb22e 100644 --- a/Modules/Core/Common/src/otbLogger.cxx +++ b/Modules/Core/Common/src/otbLogger.cxx @@ -24,8 +24,7 @@ namespace otb { -Logger::Logger() : - itk::Logger::Logger() +Logger::Logger() { #if OTB_DEBUG this->SetPriorityLevel(itk::LoggerBase::DEBUG); -- GitLab