diff options
Diffstat (limited to 'TAO/tao/Seq_VarOut_T.inl')
-rw-r--r-- | TAO/tao/Seq_VarOut_T.inl | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/TAO/tao/Seq_VarOut_T.inl b/TAO/tao/Seq_VarOut_T.inl index 5d635318d00..a67dd51fcce 100644 --- a/TAO/tao/Seq_VarOut_T.inl +++ b/TAO/tao/Seq_VarOut_T.inl @@ -126,7 +126,7 @@ template<typename T, typename T_elem> ACE_INLINE TAO_FixedSeq_Var_T<T,T_elem>::TAO_FixedSeq_Var_T (const T & p) { - ACE_NEW (this->ptr_, + ACE_NEW (this->ptr_, T (p)); } @@ -194,14 +194,6 @@ TAO_VarSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index) return this->ptr_->operator[] (index); } -template<typename T, typename T_elem> -ACE_INLINE -const T_elem & -TAO_VarSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index) const -{ - return ACE_const_cast (const T_elem &, this->ptr_->operator[] (index)); -} - // *************************************************************** template<typename T, typename T_elem> @@ -320,9 +312,8 @@ TAO_Seq_Out_T<T,T_var,T_elem>::operator-> (void) template<typename T, typename T_var, typename T_elem> ACE_INLINE -T_elem +T_elem & TAO_Seq_Out_T<T,T_var,T_elem>::operator[] (CORBA::ULong index) { return this->ptr_->operator[] (index); } - |