diff options
Diffstat (limited to 'TAO/TAO_IDL/util/utl_identifier.cpp')
-rw-r--r-- | TAO/TAO_IDL/util/utl_identifier.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/TAO/TAO_IDL/util/utl_identifier.cpp b/TAO/TAO_IDL/util/utl_identifier.cpp index 9ee1561e12b..9598bf0aee0 100644 --- a/TAO/TAO_IDL/util/utl_identifier.cpp +++ b/TAO/TAO_IDL/util/utl_identifier.cpp @@ -72,29 +72,29 @@ trademarks or registered trademarks of Sun Microsystems, Inc. #include "ace/streams.h" #include "ace/OS_NS_string.h" -Identifier::Identifier (void) - : pv_string (0), +Identifier::Identifier () + : pv_string (nullptr), escaped_ (false) { } Identifier::Identifier (const char *s) - : pv_string (0), + : pv_string (nullptr), escaped_ (false) { preprocess_and_replace_string (s); } Identifier::Identifier (const Identifier &other) - : pv_string (0), + : pv_string (nullptr), escaped_ (other.escaped ()) { *this = other; } -Identifier::~Identifier (void) +Identifier::~Identifier () { - if (this->pv_string != 0) + if (this->pv_string != nullptr) { ACE::strdelete (this->pv_string); } @@ -103,13 +103,13 @@ Identifier::~Identifier (void) // Operations. char * -Identifier::get_string (void) +Identifier::get_string () { return this->pv_string; } const char * -Identifier::get_string (void) const +Identifier::get_string () const { return this->pv_string; } @@ -121,7 +121,7 @@ Identifier::replace_string (const char * s) { delete [] this->pv_string; } - this->pv_string = s ? ACE::strnew (s) : 0; + this->pv_string = s ? ACE::strnew (s) : nullptr; } void @@ -166,7 +166,7 @@ Identifier::preprocess_and_replace_string (const char * s) const TAO_IDL_CPP_Keyword_Entry *entry = cpp_key_tbl.lookup (str.c_str (), len); - if (entry != 0) + if (entry != nullptr) { shift = false; } @@ -206,12 +206,12 @@ Identifier::case_compare_quiet (Identifier *o) } Identifier * -Identifier::copy (void) +Identifier::copy () { - Identifier *retval = 0; + Identifier *retval = nullptr; ACE_NEW_RETURN (retval, Identifier (this->pv_string), - 0); + nullptr); retval->escaped_ = this->escaped_; @@ -219,7 +219,7 @@ Identifier::copy (void) } bool -Identifier::escaped (void) const +Identifier::escaped () const { return this->escaped_; } @@ -228,7 +228,7 @@ Identifier::escaped (void) const void Identifier::dump (ACE_OSTREAM_TYPE &o) { - if (this->pv_string == 0) + if (this->pv_string == nullptr) { return; } @@ -241,7 +241,7 @@ Identifier::dump (ACE_OSTREAM_TYPE &o) } void -Identifier::destroy (void) +Identifier::destroy () { } |