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 /ACE | |
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
Diffstat (limited to 'ACE')
-rw-r--r-- | ACE/ace/Time_Policy.h | 2 | ||||
-rw-r--r-- | ACE/ace/Time_Policy.inl | 2 |
2 files changed, 2 insertions, 2 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; } |