summaryrefslogtreecommitdiff
path: root/TAO/tao/Sequence_T.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-27 04:39:37 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-27 04:39:37 +0000
commitcfb0bd15d66533fcd1dc2968981f684e4a270520 (patch)
treeddd6a0e2fbcafd7c3de7575a71eacaf41cdec1f4 /TAO/tao/Sequence_T.cpp
parent714bb3ea43b9007731ac25662481d618d91f0b71 (diff)
downloadATCD-cfb0bd15d66533fcd1dc2968981f684e4a270520.tar.gz
ChangeLogTag: Mon Mar 26 22:34:39 2001 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Sequence_T.cpp')
-rw-r--r--TAO/tao/Sequence_T.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/tao/Sequence_T.cpp b/TAO/tao/Sequence_T.cpp
index 1c9e4dc6d0f..5a59b076e8a 100644
--- a/TAO/tao/Sequence_T.cpp
+++ b/TAO/tao/Sequence_T.cpp
@@ -258,7 +258,7 @@ TAO_Object_Manager<T,T_var>::operator=(T* p)
// The semantics of the elements of a sequence are the same as
// that of a var variable. Therefore we will not duplicate the
// user provided pointer before assigning it to the internal
- // variable. However, we will release it.
+ // variable.
CORBA::release (*this->ptr_);
*this->ptr_ = p;
}
@@ -269,14 +269,14 @@ TAO_Object_Manager<T,T_var>::operator=(T* p)
}
template <class T, class T_var>TAO_Object_Manager<T,T_var> &
-TAO_Object_Manager<T,T_var>::operator=(T_var &p)
+TAO_Object_Manager<T,T_var>::operator=(const T_var &p)
{
if (this->release_)
{
// The semantics of the elements of a sequence are the same as
- // that of a var variable. Therefore we will not duplicate the
- // user provided pointer before assigning it to the internal
- // variable. However, we will release it.
+ // that of a var variable. Therefore we duplicate p's
+ // pointer before assigning it to the internal
+ // variable.
CORBA::release (*this->ptr_);
*this->ptr_ = T::_duplicate (p.in ());
}