diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-05 07:19:41 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-05 07:19:41 +0000 |
commit | a3c9a92711dfa4d7eefaffd5bf1bf6235fd74a8a (patch) | |
tree | 808937bf9b591f19dd97c781a095db338c85af0c /TAO/tao/Environment.cpp | |
parent | a27ab066486b72d93edcf9110fb570018b7d7fc4 (diff) | |
download | ATCD-a3c9a92711dfa4d7eefaffd5bf1bf6235fd74a8a.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/tao/Environment.cpp')
-rw-r--r-- | TAO/tao/Environment.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/TAO/tao/Environment.cpp b/TAO/tao/Environment.cpp index 0242aa5648e..ab4d7956c86 100644 --- a/TAO/tao/Environment.cpp +++ b/TAO/tao/Environment.cpp @@ -214,3 +214,31 @@ CORBA::Environment::print_exception (const char *info, ACE_DEBUG ((LM_ERROR, "TAO: (%P|%t) no exception\n")); } + +// ********************************************************* + +CORBA_Environment_var & +CORBA_Environment_var::operator= (CORBA_Environment_ptr p) +{ + if (this->ptr_ != p) + { + if (this->ptr_ != 0) + delete (this->ptr_); + + this->ptr_ = p; + } + return *this; +} + +CORBA_Environment_var & +CORBA_Environment_var::operator= (const CORBA_Environment_var &r) +{ + if (this->ptr_ != 0) + delete this->ptr_; + + this->ptr_ = new CORBA::Environment (*r.ptr_); + return *this; +} + + + |