diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2023-02-06 09:21:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 09:21:37 +0100 |
commit | 69fbec6c475060cf01a710a3d7ed6e756538858c (patch) | |
tree | ec54b54468212e1f8b291831cdb5170652985fb3 | |
parent | 7e8b94b728b886d14fc17b6af789e9ba0c50a050 (diff) | |
parent | 89a05c65fd627673f0bcc260b990257dcf30150c (diff) | |
download | ATCD-69fbec6c475060cf01a710a3d7ed6e756538858c.tar.gz |
Merge pull request #2046 from jwillemsen/jwinullptrexce
Use nullptr and make destructor of TAO SystemException default
-rw-r--r-- | ACE/ace/Time_Policy.h | 2 | ||||
-rw-r--r-- | ACE/ace/Time_Policy.inl | 2 | ||||
-rw-r--r-- | TAO/tao/SystemException.cpp | 4 | ||||
-rw-r--r-- | TAO/tao/SystemException.h | 2 |
4 files changed, 3 insertions, 7 deletions
diff --git a/ACE/ace/Time_Policy.h b/ACE/ace/Time_Policy.h index b50d0594a4d..41a42eb1c39 100644 --- a/ACE/ace/Time_Policy.h +++ b/ACE/ace/Time_Policy.h @@ -108,7 +108,7 @@ class ACE_Dynamic_Time_Policy_Base; // forward decl class ACE_Export ACE_Delegating_Time_Policy { public: - ACE_Delegating_Time_Policy (ACE_Dynamic_Time_Policy_Base const * delegate = 0); + ACE_Delegating_Time_Policy (ACE_Dynamic_Time_Policy_Base const * delegate = nullptr); /// Return the current time according to this policy ACE_Time_Value_T<ACE_Delegating_Time_Policy> operator()() const; diff --git a/ACE/ace/Time_Policy.inl b/ACE/ace/Time_Policy.inl index f057ed3a0f7..52fe49f1f27 100644 --- a/ACE/ace/Time_Policy.inl +++ b/ACE/ace/Time_Policy.inl @@ -76,7 +76,7 @@ ACE_Delegating_Time_Policy::set_gettimeofday (ACE_Time_Value (*)()) ACE_INLINE void ACE_Delegating_Time_Policy::set_delegate (ACE_Dynamic_Time_Policy_Base const * delegate) { - if (delegate != 0) + if (delegate) { this->delegate_ = delegate; } diff --git a/TAO/tao/SystemException.cpp b/TAO/tao/SystemException.cpp index c4df7669a0d..9fb0157a11f 100644 --- a/TAO/tao/SystemException.cpp +++ b/TAO/tao/SystemException.cpp @@ -86,10 +86,6 @@ CORBA::SystemException::SystemException (const CORBA::SystemException &src) { } -CORBA::SystemException::~SystemException () -{ -} - CORBA::SystemException & CORBA::SystemException::operator= (const CORBA::SystemException &src) { diff --git a/TAO/tao/SystemException.h b/TAO/tao/SystemException.h index 1aeb7636e07..5f5fae29c26 100644 --- a/TAO/tao/SystemException.h +++ b/TAO/tao/SystemException.h @@ -92,7 +92,7 @@ namespace CORBA SystemException (const SystemException & src); /// Destructor. - virtual ~SystemException (); + virtual ~SystemException () = default; /// Get the minor status. ULong minor () const; |