diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-16 17:51:08 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-16 17:51:08 +0000 |
commit | 0c937a6a632380459e0e0a274b02201830dbd26b (patch) | |
tree | 12b77082d9f1bf4da9b41f758e48b44a4a1d21d7 /TAO/tao/Sequence_T.cpp | |
parent | 20b8e488b8d015cc2a51e349ccfa4cb0b6476a82 (diff) | |
download | ATCD-0c937a6a632380459e0e0a274b02201830dbd26b.tar.gz |
iostream operators for (W)String_var and (W)String_out, and more
attempts to please SunCC.
Diffstat (limited to 'TAO/tao/Sequence_T.cpp')
-rw-r--r-- | TAO/tao/Sequence_T.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/TAO/tao/Sequence_T.cpp b/TAO/tao/Sequence_T.cpp index 700388f132e..87472b2489e 100644 --- a/TAO/tao/Sequence_T.cpp +++ b/TAO/tao/Sequence_T.cpp @@ -1068,15 +1068,12 @@ operator= (const TAO_Unbounded_Array_Sequence<T, T_var> &rhs) TAO_Unbounded_Base_Sequence::operator= (rhs); - T *tmp1 = ACE_reinterpret_cast (T *, - this->buffer_); - - const T *tmp2 = ACE_reinterpret_cast (const T *, - rhs.buffer_); - for (CORBA::ULong i = 0; i < rhs.length_; ++i) { - T_var::copy (tmp1[i], tmp2[i]); + T_var::copy (ACE_reinterpret_cast (T *, + this->buffer_)[i], + ACE_reinterpret_cast (const T *, + rhs.buffer_)[i]); } return *this; @@ -1176,17 +1173,12 @@ TAO_Bounded_Array_Sequence<T, T_var, MAX>::operator= TAO_Bounded_Array_Sequence<T, T_var, MAX>::allocbuf (rhs.maximum_); } - TAO_Bounded_Base_Sequence::operator= (rhs); - - T *tmp1 = ACE_reinterpret_cast (T *, - this->buffer_); - - const T *tmp2 = ACE_reinterpret_cast (const T *, - rhs.buffer_); - for (CORBA::ULong i = 0; i < rhs.length_; ++i) { - T_var::copy (tmp1[i], tmp2[i]); + T_var::copy (ACE_reinterpret_cast (T *, + this->buffer_)[i], + ACE_reinterpret_cast (const T *, + rhs.buffer_)[i]); } return *this; |