diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-03-23 00:03:14 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-03-23 00:03:14 +0000 |
commit | 7ae5fa03eed712671962ff3417e91311a422578d (patch) | |
tree | b9f923b98e1afadea5e76c15c7fbe6dedcf103d4 /TAO/tao/ORB.i | |
parent | 09e322688071bc503443008d2c241b3f6b5b10a6 (diff) | |
download | ATCD-7ae5fa03eed712671962ff3417e91311a422578d.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/tao/ORB.i')
-rw-r--r-- | TAO/tao/ORB.i | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/TAO/tao/ORB.i b/TAO/tao/ORB.i index 714764e4df1..83d503e9dc7 100644 --- a/TAO/tao/ORB.i +++ b/TAO/tao/ORB.i @@ -11,12 +11,6 @@ CORBA::string_alloc (CORBA::ULong len) return new CORBA::Char[size_t (len + 1)]; } -ACE_INLINE TAO_Export CORBA::String -CORBA::string_dup (const CORBA::Char *str) -{ - return CORBA::string_copy (str); -} - ACE_INLINE TAO_Export void CORBA::string_free (CORBA::Char *str) { @@ -34,36 +28,11 @@ CORBA::String_var::String_var (void) } ACE_INLINE -CORBA::String_var::~String_var (void) -{ - if (this->ptr_ != 0) - { - CORBA::string_free (this->ptr_); - this->ptr_ = 0; - } -} - -ACE_INLINE -CORBA::String_var::String_var (char *p) - : ptr_ (p) -{ - // NOTE: According to the CORBA spec this string must *not* be - // copied, but it is non-compliant to use it/release it in the - // calling code. argument is consumed. p should never be NULL -} - -ACE_INLINE CORBA::String_var::String_var (const char *p) : ptr_ (CORBA::string_dup ((char *) p)) { } -ACE_INLINE -CORBA::String_var::String_var (const CORBA::String_var& r) -{ - this->ptr_ = CORBA::string_dup (r.ptr_); -} - ACE_INLINE CORBA::Char & CORBA::String_var::operator[] (CORBA::ULong index) { |