From 20f308865b5ca6936fa4db6408a2b8568e8cd4c8 Mon Sep 17 00:00:00 2001 From: ctraizet <cedric.traizet@c-s.fr> Date: Fri, 8 Mar 2019 11:18:21 +0100 Subject: [PATCH] ENH: make LogOutputCallback pure virtual --- Modules/Wrappers/SWIG/src/python/otbLogOutputCallback.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Modules/Wrappers/SWIG/src/python/otbLogOutputCallback.h b/Modules/Wrappers/SWIG/src/python/otbLogOutputCallback.h index 41b98e0611..e7e4ab04dc 100644 --- a/Modules/Wrappers/SWIG/src/python/otbLogOutputCallback.h +++ b/Modules/Wrappers/SWIG/src/python/otbLogOutputCallback.h @@ -44,16 +44,13 @@ public: virtual ~LogOutputCallback() = default; /** Write a string to a buffer */ - virtual void Call(std::string const&){}; + virtual void Call(std::string const&)=0; /** Flush the buffer */ - virtual void Flush(){}; + virtual void Flush()=0; /** Determine if the bufer is interactive */ - virtual bool Isatty() - { - return false; - }; + virtual bool Isatty()=0; }; } // namespace otb -- GitLab