diff options
author | bala <balanatarajan@users.noreply.github.com> | 2003-07-01 03:30:58 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2003-07-01 03:30:58 +0000 |
commit | c4218b9725988b4e1061155c3616477a46d8425c (patch) | |
tree | 7b247d1ef21c897401827a3d90d41e82d2fdd8d6 /TAO/tao/Array_VarOut_T.cpp | |
parent | d1f4ec89b4761404ac8678402752bf65eaa60485 (diff) | |
download | ATCD-refactor-stage4.tar.gz |
ChangeLogTag:Mon Jun 30 22:29:51 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>refactor-stage4
Diffstat (limited to 'TAO/tao/Array_VarOut_T.cpp')
-rw-r--r-- | TAO/tao/Array_VarOut_T.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/TAO/tao/Array_VarOut_T.cpp b/TAO/tao/Array_VarOut_T.cpp index b9058fedc07..90841d0d445 100644 --- a/TAO/tao/Array_VarOut_T.cpp +++ b/TAO/tao/Array_VarOut_T.cpp @@ -13,33 +13,33 @@ ACE_RCSID (tao, Array_VarOut_T, "$Id$") -template<typename T_slice, typename T_life> -TAO_FixedArray_Var_T<T_slice,T_life> & -TAO_FixedArray_Var_T<T_slice,T_life>::operator= (T_slice * p) +template<typename T, typename T_slice, typename T_life> +TAO_FixedArray_Var_T<T,T_slice,T_life> & +TAO_FixedArray_Var_T<T,T_slice,T_life>::operator= (T_slice * p) { // Is what we own the same that is being assigned to us? if (this->ptr_ != p) { // Delete our stuff and assume ownership of p. - T_life::tao_free (this->ptr_); + TAO::Array_Traits<T,T_slice>::tao_free (this->ptr_); this->ptr_ = p; } return *this; } -template<typename T_slice, typename T_life> -TAO_FixedArray_Var_T<T_slice,T_life> & -TAO_FixedArray_Var_T<T_slice,T_life>::operator= ( - const TAO_FixedArray_Var_T<T_slice,T_life> & p +template<typename T, typename T_slice, typename T_life> +TAO_FixedArray_Var_T<T,T_slice,T_life> & +TAO_FixedArray_Var_T<T,T_slice,T_life>::operator= ( + const TAO_FixedArray_Var_T<T,T_slice,T_life> & p ) { if (this != &p) { - T_life::tao_free (this->ptr_); + TAO::Array_Traits<T,T_slice>::tao_free (this->ptr_); // Deep copy. - this->ptr_ = T_life::tao_dup (p.in ()); + this->ptr_ = TAO::Array_Traits<T,T_slice>::tao_dup (p.in ()); } return *this; @@ -47,33 +47,33 @@ TAO_FixedArray_Var_T<T_slice,T_life>::operator= ( // ************************************************************* -template<typename T_slice, typename T_life> -TAO_VarArray_Var_T<T_slice,T_life> & -TAO_VarArray_Var_T<T_slice,T_life>::operator= (T_slice * p) +template<typename T, typename T_slice, typename T_life> +TAO_VarArray_Var_T<T,T_slice,T_life> & +TAO_VarArray_Var_T<T,T_slice,T_life>::operator= (T_slice * p) { // Is what we own the same that is being assigned to us? if (this->ptr_ != p) { // Delete our stuff and assume ownership of p. - T_life::tao_free (this->ptr_); + TAO::Array_Traits<T,T_slice>::tao_free (this->ptr_); this->ptr_ = p; } return *this; } -template<typename T_slice, typename T_life> -TAO_VarArray_Var_T<T_slice,T_life> & -TAO_VarArray_Var_T<T_slice,T_life>::operator= ( - const TAO_VarArray_Var_T<T_slice,T_life> & p +template<typename T, typename T_slice, typename T_life> +TAO_VarArray_Var_T<T,T_slice,T_life> & +TAO_VarArray_Var_T<T,T_slice,T_life>::operator= ( + const TAO_VarArray_Var_T<T,T_slice,T_life> & p ) { if (this != &p) { - T_life::tao_free (this->ptr_); + TAO::Array_Traits<T,T_slice>::tao_free (this->ptr_); // Deep copy. - this->ptr_ = T_life::tao_dup (p.in ()); + this->ptr_ = TAO::Array_Traits<T,T_slice>::tao_dup (p.in ()); } return *this; @@ -81,14 +81,14 @@ TAO_VarArray_Var_T<T_slice,T_life>::operator= ( // ************************************************************* -template<typename T_slice, typename T_life> +template<typename T, typename T_slice, typename T_life> void -TAO_Array_Forany_T<T_slice,T_life>::_tao_any_destructor ( +TAO_Array_Forany_T<T,T_slice,T_life>::_tao_any_destructor ( void * _tao_void_pointer ) { T_slice * tmp = ACE_static_cast (T_slice *, _tao_void_pointer); - T_life::tao_free (tmp); + TAO::Array_Traits<T,T_slice>::tao_free (tmp); } #endif /* TAO_ARRAY_VAROUT_T_C */ |