diff options
Diffstat (limited to 'ace/Service_Object.cpp')
-rw-r--r-- | ace/Service_Object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/Service_Object.cpp b/ace/Service_Object.cpp index 3db9dc257c7..42786291f87 100644 --- a/ace/Service_Object.cpp +++ b/ace/Service_Object.cpp @@ -61,7 +61,7 @@ ACE_Service_Type::~ACE_Service_Type (void) this->fini (); - delete [] (ACE_TCHAR *) this->name_; + delete [] const_cast <ACE_TCHAR *> (this->name_); } int @@ -121,6 +121,6 @@ ACE_Service_Type::name (const ACE_TCHAR *n) { ACE_TRACE ("ACE_Service_Type::name"); - delete [] (ACE_TCHAR *) this->name_; + delete [] const_cast <ACE_TCHAR *> (this->name_); this->name_ = ACE::strnew (n); } |