summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-02-07 09:31:54 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-02-07 09:31:54 +0000
commitcecd2583539f937a2ca0e1edf642635820f90574 (patch)
treee01ed3fc42715e8535bd132b5d83bb3fc34c8baa
parentdd64cf00b8fb01d6868a695aea4493555344a243 (diff)
downloadATCD-cecd2583539f937a2ca0e1edf642635820f90574.tar.gz
ChangeLogTag: Mon Feb 6 09:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r--TAO/tao/CDR_Encaps_Codec.cpp6
1 files 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<TAO::Unknown_IDL_Type *> (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 ();