diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-19 22:20:58 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-19 22:20:58 +0000 |
commit | 4651c3ee1586f1a907bcb4d47a8b6846eae93efe (patch) | |
tree | b2d9f96d859d963afe42b8a2eff4a7d0197f50c8 | |
parent | bf0dec9c7b637910eb85211f7056dec2b717b76a (diff) | |
download | ATCD-4651c3ee1586f1a907bcb4d47a8b6846eae93efe.tar.gz |
ChangeLogTag:Mon Jan 19 16:19:28 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
-rw-r--r-- | TAO/ChangeLog-98c | 6 | ||||
-rw-r--r-- | TAO/tao/deep_free.cpp | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/TAO/ChangeLog-98c b/TAO/ChangeLog-98c index ab08a5bbb05..8686f2dc4f1 100644 --- a/TAO/ChangeLog-98c +++ b/TAO/ChangeLog-98c @@ -1,3 +1,9 @@ +Mon Jan 19 16:19:28 1998 Carlos O'Ryan <coryan@cs.wustl.edu> + + * tao/deep_free.cpp: + A reinterpret cast was dropping constness also, thanks to Irfan + for pointing this one out. + Mon Jan 19 15:36:10 1998 Carlos O'Ryan <coryan@cs.wustl.edu> * tao/sequence_T.i: diff --git a/TAO/tao/deep_free.cpp b/TAO/tao/deep_free.cpp index f9a587c69d8..3ebd090bd83 100644 --- a/TAO/tao/deep_free.cpp +++ b/TAO/tao/deep_free.cpp @@ -436,14 +436,16 @@ CORBA::TypeCode::traverse_status TAO_Marshal_Sequence::deep_free (CORBA::TypeCode_ptr tc, const void *source, const void *dest, - CORBA::Environment &env){ + CORBA::Environment &env) +{ // TAO implements sequences using inheritance from a base // class. That class allocate and deallocates the buffer, using // virtual methods. if (tc) { - TAO_Base_Sequence *src = ACE_reinterpret_cast(TAO_Base_Sequence*,source); + TAO_Base_Sequence *src = + ACE_reinterpret_cast(TAO_Base_Sequence*,ACE_const_cast(void*,source)); src->_deallocate_buffer (); return CORBA::TypeCode::TRAVERSE_CONTINUE; |