Skip to content

Commit

Permalink
Use nullptr
Browse files Browse the repository at this point in the history
    * TAO/tao/Valuetype/AbstractBase.cpp:
  • Loading branch information
jwillemsen committed Sep 7, 2023
1 parent 45ac786 commit d1a1e20
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions TAO/tao/Valuetype/AbstractBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CORBA::AbstractBase::AbstractBase ()
: is_objref_ (false)
, refcount_ (1)
, is_collocated_ (false)
, servant_ (0)
, servant_ (nullptr)
, equivalent_obj_ (CORBA::Object::_nil ())
{
}
Expand Down Expand Up @@ -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 ();
}
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d1a1e20

Please sign in to comment.