From bb76358b0035d7ce30cb26e88df15c5647ed3f16 Mon Sep 17 00:00:00 2001 From: nanbor Date: Thu, 19 Mar 1998 09:11:03 +0000 Subject: CE stuff. --- ace/Service_Object.i | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ace/Service_Object.i') 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 -- cgit v1.2.1