From d1a1e205295667ec2f61d3eee57db4cf4fb265c1 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Thu, 7 Sep 2023 13:05:50 +0200 Subject: [PATCH] Use nullptr * TAO/tao/Valuetype/AbstractBase.cpp: --- TAO/tao/Valuetype/AbstractBase.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TAO/tao/Valuetype/AbstractBase.cpp b/TAO/tao/Valuetype/AbstractBase.cpp index f9bddb40e1167..62531ec55521c 100644 --- a/TAO/tao/Valuetype/AbstractBase.cpp +++ b/TAO/tao/Valuetype/AbstractBase.cpp @@ -20,7 +20,7 @@ CORBA::AbstractBase::AbstractBase () : is_objref_ (false) , refcount_ (1) , is_collocated_ (false) - , servant_ (0) + , servant_ (nullptr) , equivalent_obj_ (CORBA::Object::_nil ()) { } @@ -105,12 +105,12 @@ CORBA::AbstractBase::_to_value () { if (this->is_objref_) { - return 0; + return nullptr; } CORBA::ValueBase *retval = this->_tao_to_value (); - if (retval != 0) + if (retval != nullptr) { retval->_add_ref (); } @@ -229,10 +229,10 @@ operator<< (TAO_OutputCDR &strm, const CORBA::AbstractBase_ptr abs) CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::AbstractBase_ptr &abs) { - abs = 0; + abs = nullptr; CORBA::Boolean discriminator = false; ACE_InputCDR::to_boolean tb (discriminator); - TAO_ORB_Core *orb_core = 0; + TAO_ORB_Core *orb_core = nullptr; if (strm >> tb) { @@ -378,7 +378,7 @@ CORBA::AbstractBase::_tao_stream_v (std::ostream &strm) const CORBA::ValueBase * CORBA::AbstractBase::_tao_to_value () { - return 0; + return nullptr; } CORBA::Object_ptr