diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-19 09:11:03 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-19 09:11:03 +0000 |
commit | bb76358b0035d7ce30cb26e88df15c5647ed3f16 (patch) | |
tree | d9d4aef2560d545313423c06c21072e59b588927 /ace/Service_Object.i | |
parent | b387da33a585455ea4ede00f8ce7b30ae86ba19a (diff) | |
download | ATCD-bb76358b0035d7ce30cb26e88df15c5647ed3f16.tar.gz |
CE stuff.
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 |