diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-11-02 07:13:04 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-11-02 07:13:04 +0000 |
commit | ef90f48326d00ec9fcb44bc43ac249e4617d7cb7 (patch) | |
tree | 52300a84c07910ff7f95f76d7b2820c1a4b59606 /TAO/tao/CORBA_String.cpp | |
parent | 681f78f9142968f31054464967191979d51af69b (diff) | |
download | ATCD-ef90f48326d00ec9fcb44bc43ac249e4617d7cb7.tar.gz |
ChangeLogTag:Tue Nov 1 14:49:40 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/CORBA_String.cpp')
-rw-r--r-- | TAO/tao/CORBA_String.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/TAO/tao/CORBA_String.cpp b/TAO/tao/CORBA_String.cpp index 0511d23755a..f8889735ce5 100644 --- a/TAO/tao/CORBA_String.cpp +++ b/TAO/tao/CORBA_String.cpp @@ -16,6 +16,8 @@ ACE_RCSID (tao, CORBA_String, "$Id$") +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + char * CORBA::string_dup (const char *str) { @@ -74,7 +76,7 @@ CORBA::wstring_dup (const WChar *const str) return 0; } - CORBA::WChar* retval = + CORBA::WChar* retval = CORBA::wstring_alloc (static_cast <CORBA::ULong> (ACE_OS::strlen (str))); // The wscpy() below assumes that the destination is a valid buffer. @@ -273,7 +275,7 @@ operator>> (istream &is, CORBA::String_out &so) ostream & operator<< (ostream &os, const CORBA::WString_var &wsv) { - const CORBA::ULong len = + const CORBA::ULong len = static_cast <CORBA::ULong> (ACE_OS::strlen (wsv.in ())); for (CORBA::ULong i = 0; i < len; ++i) @@ -349,3 +351,5 @@ operator>> (istream &is, CORBA::WString_out &wso) } #endif /* ACE_LACKS_IOSTREAM_TOTALLY */ + +TAO_END_VERSIONED_NAMESPACE_DECL |