From d89f6928aa1ecd9da65989a170b2a808206a455a Mon Sep 17 00:00:00 2001 From: Like Ma Date: Sun, 14 Jul 2024 13:13:37 +0800 Subject: [PATCH] Default Log_Msg_* dtors --- ACE/ace/Log_Msg_Backend.cpp | 9 --------- ACE/ace/Log_Msg_Backend.h | 2 +- ACE/ace/Log_Msg_Callback.cpp | 9 --------- ACE/ace/Log_Msg_Callback.h | 2 +- ACE/ace/Log_Msg_UNIX_Syslog.h | 10 +++++----- ACE/ace/ace.mpc | 2 -- ACE/ace/ace_for_tao.mpc | 2 -- 7 files changed, 7 insertions(+), 29 deletions(-) delete mode 100644 ACE/ace/Log_Msg_Backend.cpp delete mode 100644 ACE/ace/Log_Msg_Callback.cpp diff --git a/ACE/ace/Log_Msg_Backend.cpp b/ACE/ace/Log_Msg_Backend.cpp deleted file mode 100644 index 0cdad7eb6d31a..0000000000000 --- a/ACE/ace/Log_Msg_Backend.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include "ace/Log_Msg_Backend.h" - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - -ACE_Log_Msg_Backend::~ACE_Log_Msg_Backend () -{ -} - -ACE_END_VERSIONED_NAMESPACE_DECL diff --git a/ACE/ace/Log_Msg_Backend.h b/ACE/ace/Log_Msg_Backend.h index a003f70cb6227..e5bad0c7fd714 100644 --- a/ACE/ace/Log_Msg_Backend.h +++ b/ACE/ace/Log_Msg_Backend.h @@ -40,7 +40,7 @@ class ACE_Export ACE_Log_Msg_Backend { public: /// No-op virtual destructor. - virtual ~ACE_Log_Msg_Backend (); + virtual ~ACE_Log_Msg_Backend () = default; /** * Open the back end object. Perform any actions needed to prepare diff --git a/ACE/ace/Log_Msg_Callback.cpp b/ACE/ace/Log_Msg_Callback.cpp deleted file mode 100644 index d86575567a8d4..0000000000000 --- a/ACE/ace/Log_Msg_Callback.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include "ace/Log_Msg_Callback.h" - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - -ACE_Log_Msg_Callback::~ACE_Log_Msg_Callback () -{ -} - -ACE_END_VERSIONED_NAMESPACE_DECL diff --git a/ACE/ace/Log_Msg_Callback.h b/ACE/ace/Log_Msg_Callback.h index 812c2c7ecda7d..ded34fac42875 100644 --- a/ACE/ace/Log_Msg_Callback.h +++ b/ACE/ace/Log_Msg_Callback.h @@ -56,7 +56,7 @@ class ACE_Export ACE_Log_Msg_Callback ACE_Log_Msg_Callback () = default; /// No-op virtual destructor. - virtual ~ACE_Log_Msg_Callback (); + virtual ~ACE_Log_Msg_Callback () = default; /// Callback routine. This is called when we want to log a message. /// Since this routine is pure virtual, it must be overwritten by the diff --git a/ACE/ace/Log_Msg_UNIX_Syslog.h b/ACE/ace/Log_Msg_UNIX_Syslog.h index e5be52428bd71..06735daaee6db 100644 --- a/ACE/ace/Log_Msg_UNIX_Syslog.h +++ b/ACE/ace/Log_Msg_UNIX_Syslog.h @@ -38,7 +38,7 @@ class ACE_Export ACE_Log_Msg_UNIX_Syslog : public ACE_Log_Msg_Backend ACE_Log_Msg_UNIX_Syslog () = default; /// Destructor - virtual ~ACE_Log_Msg_UNIX_Syslog (); + ~ACE_Log_Msg_UNIX_Syslog () override; /// Open a new event log. /** @@ -48,16 +48,16 @@ class ACE_Export ACE_Log_Msg_UNIX_Syslog : public ACE_Log_Msg_Backend * it is 0 (no name), the application name as * returned from ACE_Log_Msg::program_name() is used. */ - virtual int open (const ACE_TCHAR *logger_key); + int open (const ACE_TCHAR *logger_key) override; /// Reset the backend. - virtual int reset (); + int reset () override; /// Close the backend completely. - virtual int close (); + int close () override; /// This is called when we want to log a message. - virtual ssize_t log (ACE_Log_Record &log_record); + ssize_t log (ACE_Log_Record &log_record) override; private: /// Convert an ACE_Log_Priority value to the corresponding syslog priority. diff --git a/ACE/ace/ace.mpc b/ACE/ace/ace.mpc index a300f062c92b5..191fe0c29fca6 100644 --- a/ACE/ace/ace.mpc +++ b/ACE/ace/ace.mpc @@ -92,8 +92,6 @@ project(ACE) : ace_output, acedefaults, install, other, codecs, token, svcconf, Log_Category.cpp Log_Msg.cpp Log_Msg_Android_Logcat.cpp - Log_Msg_Backend.cpp - Log_Msg_Callback.cpp Log_Msg_IPC.cpp Log_Msg_NT_Event_Log.cpp Log_Msg_UNIX_Syslog.cpp diff --git a/ACE/ace/ace_for_tao.mpc b/ACE/ace/ace_for_tao.mpc index 4c5beeb7dfea6..d04e21ee8f01b 100644 --- a/ACE/ace/ace_for_tao.mpc +++ b/ACE/ace/ace_for_tao.mpc @@ -69,8 +69,6 @@ project(ACE_FOR_TAO) : acedefaults, install, svcconf, uuid, versioned_namespace, Lock.cpp Log_Category.cpp Log_Msg.cpp - Log_Msg_Backend.cpp - Log_Msg_Callback.cpp Log_Msg_IPC.cpp Log_Msg_NT_Event_Log.cpp Log_Msg_UNIX_Syslog.cpp