diff options
Diffstat (limited to 'TAO/TAO_IDL/util/utl_strlist.cpp')
-rw-r--r-- | TAO/TAO_IDL/util/utl_strlist.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/TAO/TAO_IDL/util/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_strlist.cpp index 1db9b62ab5c..3d835c292bb 100644 --- a/TAO/TAO_IDL/util/utl_strlist.cpp +++ b/TAO/TAO_IDL/util/utl_strlist.cpp @@ -86,13 +86,13 @@ UTL_StrList::UTL_StrList (UTL_String *s, { } -UTL_StrList::~UTL_StrList (void) +UTL_StrList::~UTL_StrList () { } // Get list item. UTL_String * -UTL_StrList::head (void) +UTL_StrList::head () { return this->pd_car_data; } @@ -106,9 +106,9 @@ UTL_StrList::set_head (UTL_String *s) // Get last item of this list UTL_String * -UTL_StrList::last_component (void) +UTL_StrList::last_component () { - if (this->tail () == 0) + if (this->tail () == nullptr) { return pd_car_data; } @@ -118,39 +118,39 @@ UTL_StrList::last_component (void) // Copy a list. UTL_List * -UTL_StrList::copy (void) +UTL_StrList::copy () { - UTL_List *retval = 0; + UTL_List *retval = nullptr; - if (this->tail () == 0) + if (this->tail () == nullptr) { ACE_NEW_RETURN (retval, UTL_StrList (head (), - 0), - 0); + nullptr), + nullptr); } else { ACE_NEW_RETURN (retval, UTL_StrList (head (), (UTL_StrList *) this->tail ()->copy ()), - 0); + nullptr); } return retval; } void -UTL_StrList::destroy (void) +UTL_StrList::destroy () { - UTL_String *str = 0; + UTL_String *str = nullptr; for (UTL_StrlistActiveIterator i (this); !i.is_done (); i.next ()) { str = i.item (); str->destroy (); delete str; - str = 0; + str = nullptr; } } @@ -158,7 +158,7 @@ UTL_StrList::destroy (void) void UTL_StrList::dump (ACE_OSTREAM_TYPE &o) { - char *s = 0; + char *s = nullptr; bool first = true; bool second = false; @@ -215,11 +215,11 @@ UTL_StrlistActiveIterator::UTL_StrlistActiveIterator (UTL_StrList *s) // Get current item UTL_String * -UTL_StrlistActiveIterator::item (void) +UTL_StrlistActiveIterator::item () { - if (source == 0) + if (source == nullptr) { - return 0; + return nullptr; } return ((UTL_StrList *) source)->head (); |