diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-04-23 14:37:28 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-04-23 14:37:28 +0200 |
commit | 292114e68b44623de91c107d989a83fb0d183d29 (patch) | |
tree | 17c2485c8b3c118db32bc21054f47c0b1b2869d1 /TAO | |
parent | 62fcedd0c81e56d243e6689891b6a83de470a2d4 (diff) | |
download | ATCD-292114e68b44623de91c107d989a83fb0d183d29.tar.gz |
Minor cleanup, layout changes, use nullptr
* ACE/ACEXML/common/HttpCharStream.cpp:
* ACE/ACEXML/common/HttpCharStream.h:
* ACE/ACEXML/common/URL_Addr.cpp:
* ACE/ACEXML/common/XML_Codecs.cpp:
* ACE/Kokyu/Default_Dispatcher_Impl.cpp:
* ACE/Kokyu/Kokyu.cpp:
* ACE/ace/Asynch_IO.h:
* ACE/ace/Local_Memory_Pool.cpp:
* ACE/ace/Parse_Node.h:
* ACE/ace/Proactor.cpp:
* ACE/ace/Thread_Manager.cpp:
* ACE/tests/Priority_Reactor_Test.cpp:
* TAO/tao/Stub.h:
* TAO/tao/Stub.inl:
Diffstat (limited to 'TAO')
-rw-r--r-- | TAO/tao/Stub.h | 2 | ||||
-rw-r--r-- | TAO/tao/Stub.inl | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/TAO/tao/Stub.h b/TAO/tao/Stub.h index de3020ed58c..feaf10c6ce2 100644 --- a/TAO/tao/Stub.h +++ b/TAO/tao/Stub.h @@ -423,7 +423,7 @@ protected: class TAO_Export TAO_Stub_Auto_Ptr { public: - explicit TAO_Stub_Auto_Ptr (TAO_Stub *p = 0); + explicit TAO_Stub_Auto_Ptr (TAO_Stub *p = nullptr); TAO_Stub_Auto_Ptr (TAO_Stub_Auto_Ptr &ap); TAO_Stub_Auto_Ptr &operator= (TAO_Stub_Auto_Ptr &rhs); ~TAO_Stub_Auto_Ptr (); diff --git a/TAO/tao/Stub.inl b/TAO/tao/Stub.inl index dfc4a708bfc..b02fff98755 100644 --- a/TAO/tao/Stub.inl +++ b/TAO/tao/Stub.inl @@ -440,7 +440,7 @@ TAO_Stub_Auto_Ptr::release (void) { ACE_TRACE ("TAO_Stub_Auto_Ptr::release"); TAO_Stub *old = this->p_; - this->p_ = 0; + this->p_ = nullptr; return old; } @@ -448,7 +448,7 @@ ACE_INLINE void TAO_Stub_Auto_Ptr::reset (TAO_Stub *p) { ACE_TRACE ("TAO_Stub_Auto_Ptr::reset"); - if (this->get () != p && this->get () != 0) + if (this->get () != p && this->get () != nullptr) this->get ()->_decr_refcnt (); this->p_ = p; } @@ -482,12 +482,11 @@ ACE_INLINE TAO_Stub_Auto_Ptr::~TAO_Stub_Auto_Ptr (void) { ACE_TRACE ("TAO_Stub_Auto_Ptr::~TAO_Stub_Auto_Ptr"); - if (this->get() != 0) + if (this->get() != nullptr) this->get ()->_decr_refcnt (); } // Accessor methods to the underlying Stub Object - ACE_INLINE TAO_Stub & TAO_Stub_Auto_Ptr::operator *() const { @@ -496,5 +495,4 @@ TAO_Stub_Auto_Ptr::operator *() const return *this->get (); } - TAO_END_VERSIONED_NAMESPACE_DECL |