diff options
Diffstat (limited to 'ace/Service_Object.i')
-rw-r--r-- | ace/Service_Object.i | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ace/Service_Object.i b/ace/Service_Object.i index d58e7fa8dbb..d8e511b9ca9 100644 --- a/ace/Service_Object.i +++ b/ace/Service_Object.i @@ -26,6 +26,16 @@ ACE_Service_Type::name (void) const return this->name_; } +ACE_INLINE const char * +ACE_Service_Type::chname (void) const +{ +#if !defined (ACE_HAS_MOSTLY_UNICODE_APIS) + return this->name (); +#else + return this->chname_; +#endif /* !ACE_HAS_MOSTLY_UNICODE_APIS */ +} + ACE_INLINE const ACE_Service_Type_Impl * ACE_Service_Type::type (void) const { @@ -47,6 +57,10 @@ ACE_Service_Type::name (const ASYS_TCHAR *n) delete [] (ASYS_TCHAR *) this->name_; this->name_ = ACE_OS::strcpy (new ASYS_TCHAR [ACE_OS::strlen (n) + 1], n); +#if defined (ACE_HAS_MOSTLY_UNICODE_APIS) + delete [] (char *) this->chname_; + this->chname_ = ACE_MULTIBYTE_STRING (this->name_); +#endif /* !ACE_HAS_MOSTLY_UNICODE_APIS */ } ACE_INLINE void |