diff options
Diffstat (limited to 'TAO/TAO_IDL/util/utl_strlist.cpp')
-rw-r--r-- | TAO/TAO_IDL/util/utl_strlist.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/TAO/TAO_IDL/util/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_strlist.cpp index 511dd08d277..004c415fd5f 100644 --- a/TAO/TAO_IDL/util/utl_strlist.cpp +++ b/TAO/TAO_IDL/util/utl_strlist.cpp @@ -68,9 +68,9 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // NOTE: This list class only works correctly because we use single public // inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. +// It relies on a type-unsafe cast from UTL_List to subclasses, which +// will cease to operate correctly if you use either multiple or +// public virtual inheritance. #include "utl_strlist.h" #include "utl_string.h" @@ -81,11 +81,11 @@ trademarks or registered trademarks of Sun Microsystems, Inc. #include "ace/OS_Memory.h" #include "ace/OS_NS_string.h" -ACE_RCSID (util, - utl_strlist, +ACE_RCSID (util, + utl_strlist, "$Id$") -UTL_StrList::UTL_StrList (UTL_String *s, +UTL_StrList::UTL_StrList (UTL_String *s, UTL_StrList *cdr) : UTL_List(cdr), pd_car_data(s) @@ -131,14 +131,14 @@ UTL_StrList::copy (void) if (this->tail () == 0) { ACE_NEW_RETURN (retval, - UTL_StrList (head (), + UTL_StrList (head (), 0), 0); } else { ACE_NEW_RETURN (retval, - UTL_StrList (head (), + UTL_StrList (head (), (UTL_StrList *) this->tail ()->copy ()), 0); } @@ -165,10 +165,10 @@ void UTL_StrList::dump (ACE_OSTREAM_TYPE &o) { char *s = 0; - idl_bool first = I_TRUE; - idl_bool second = I_FALSE; + bool first = true; + bool second = false; - for (UTL_StrlistActiveIterator i (this); !i.is_done(); i.next ()) + for (UTL_StrlistActiveIterator i (this); !i.is_done(); i.next ()) { if (!first) { @@ -176,21 +176,21 @@ UTL_StrList::dump (ACE_OSTREAM_TYPE &o) } else if (second) { - first = second = I_FALSE; + first = second = false; } s = i.item ()->get_string (); o << s; - if (first) + if (first) { if (ACE_OS::strcmp (s, "::") != 0) { - first = I_FALSE; + first = false; } else { - second = I_TRUE; + second = true; } } } |