From cecd2583539f937a2ca0e1edf642635820f90574 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Mon, 7 Feb 2005 09:31:54 +0000 Subject: ChangeLogTag: Mon Feb 6 09:31:12 UTC 2005 Johnny Willemsen --- TAO/tao/CDR_Encaps_Codec.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/TAO/tao/CDR_Encaps_Codec.cpp b/TAO/tao/CDR_Encaps_Codec.cpp index 09534d58f03..a01f912d1b2 100644 --- a/TAO/tao/CDR_Encaps_Codec.cpp +++ b/TAO/tao/CDR_Encaps_Codec.cpp @@ -170,12 +170,12 @@ TAO_CDR_Encaps_Codec::encode_value (const CORBA::Any & data if ((cdr << TAO_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER))) { TAO::Any_Impl *impl = data.impl (); - + if (impl->encoded ()) { TAO::Unknown_IDL_Type *unk = dynamic_cast (impl); - + // We don't want unk's rd_ptr to move, in case we are shared by // another Any, so we use this to copy the state, not the buffer. TAO_InputCDR for_reading (unk->_tao_get_cdr ()); @@ -263,8 +263,6 @@ TAO_CDR_Encaps_Codec::decode_value (const CORBA::OctetSeq & data, // rather than attempt to extract it from the CDR // encapsulation. - CORBA::ULong sequence_length = data.length (); - size_t rd_pos = mb.rd_ptr () - mb.base (); size_t wr_pos = mb.wr_ptr () - mb.base () + data.length (); -- cgit v1.2.1