diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-07-18 00:06:19 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-07-18 00:06:19 +0000 |
commit | a4dd2ac7525f3bdfceee0ce76a573305903e9b75 (patch) | |
tree | 58ecc1394c0bae2f16789fad6eb18db912a3effc /TAO/tao/skip.cpp | |
parent | f2a4a3695480012cacbf86be3b0620d0661a29ff (diff) | |
download | ATCD-a4dd2ac7525f3bdfceee0ce76a573305903e9b75.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/tao/skip.cpp')
-rw-r--r-- | TAO/tao/skip.cpp | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/TAO/tao/skip.cpp b/TAO/tao/skip.cpp index cab32880cc1..d03d699851c 100644 --- a/TAO/tao/skip.cpp +++ b/TAO/tao/skip.cpp @@ -27,9 +27,10 @@ TAO_Marshal_Primitive::skip (CORBA::TypeCode_ptr tc, CORBA::Environment &env) { CORBA::Boolean continue_skipping = CORBA::B_TRUE; - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); + // status of skip operation - CORBA::TypeCode::traverse_status retval = + CORBA::TypeCode::traverse_status retval = CORBA::TypeCode::TRAVERSE_CONTINUE; switch (tc->kind_) @@ -89,14 +90,14 @@ TAO_Marshal_Any::skip (CORBA::TypeCode_ptr, CORBA::TypeCode_ptr elem_tc; // Context is the CDR stream. - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); // Status of encode operation. CORBA::TypeCode::traverse_status retval = CORBA::TypeCode::TRAVERSE_CONTINUE; - // first retrieve the TypeCode for the element so that we can skip the value - // based on this typecode + // First retrieve the TypeCode for the element so that we can skip + // the value based on this typecode. if (stream->decode (CORBA::_tc_TypeCode, &elem_tc, 0, @@ -118,7 +119,7 @@ TAO_Marshal_TypeCode::skip (CORBA::TypeCode_ptr, CORBA::Boolean continue_skipping = CORBA::B_TRUE; // Context is the CDR stream. - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); #if 0 // Typecode to be decoded. @@ -128,7 +129,7 @@ TAO_Marshal_TypeCode::skip (CORBA::TypeCode_ptr, // Typecode kind. CORBA::ULong kind; - // Decode the "kind" field of the typecode from the stream + // Decode the "kind" field of the typecode from the stream. continue_skipping = stream->read_ulong (kind); if (continue_skipping == CORBA::B_TRUE) @@ -213,7 +214,7 @@ TAO_Marshal_Principal::skip (CORBA::TypeCode_ptr, CORBA::Boolean continue_skipping = CORBA::B_TRUE; // Context is the CDR stream. - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); // specifies the number of bytes in the Principal CORBA::ULong len; @@ -242,7 +243,7 @@ TAO_Marshal_ObjRef::skip (CORBA::TypeCode_ptr, CORBA::Boolean continue_skipping = CORBA::B_TRUE; // Context is the CDR stream. - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); // return status CORBA::TypeCode::traverse_status retval = CORBA::TypeCode::TRAVERSE_CONTINUE; @@ -343,7 +344,7 @@ TAO_Marshal_Struct::skip (CORBA::TypeCode_ptr tc, void *context, CORBA::Environment &env) { - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); CORBA::TypeCode::traverse_status retval = CORBA::TypeCode::TRAVERSE_CONTINUE; CORBA::TypeCode_ptr param; @@ -384,7 +385,7 @@ TAO_Marshal_Union::skip (CORBA::TypeCode_ptr tc, CORBA::Environment &env) { // Context is the CDR stream. - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); CORBA::TypeCode::traverse_status retval = CORBA::TypeCode::TRAVERSE_CONTINUE; @@ -565,7 +566,7 @@ TAO_Marshal_String::skip (CORBA::TypeCode_ptr, { CORBA::Boolean continue_skipping = CORBA::B_TRUE; // Context is the CDR stream. - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); // On decode, omit the check against specified string bounds, and @@ -595,7 +596,7 @@ TAO_Marshal_Sequence::skip (CORBA::TypeCode_ptr tc, CORBA::Environment &env) { CORBA::Boolean continue_skipping = CORBA::B_TRUE; - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); // Typecode of the element. CORBA::TypeCode_ptr tc2; // Size of element. @@ -642,7 +643,7 @@ TAO_Marshal_Array::skip (CORBA::TypeCode_ptr tc, CORBA::Environment &env) { CORBA::Boolean continue_skipping = CORBA::B_TRUE; - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); // Typecode of the element. CORBA::TypeCode_ptr tc2; @@ -682,7 +683,7 @@ TAO_Marshal_Alias::skip (CORBA::TypeCode_ptr tc, CORBA::Boolean continue_skipping = CORBA::B_TRUE; // Context is the CDR stream. - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); // Status of decode operation. CORBA::TypeCode::traverse_status retval = @@ -717,7 +718,7 @@ TAO_Marshal_Except::skip (CORBA::TypeCode_ptr tc, void *context, CORBA::Environment &env) { - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); CORBA::TypeCode::traverse_status retval = CORBA::TypeCode::TRAVERSE_CONTINUE; CORBA::TypeCode_ptr param; @@ -763,7 +764,7 @@ TAO_Marshal_WString::skip (CORBA::TypeCode_ptr, CORBA::Environment &env) { CORBA::Boolean continue_skipping = CORBA::B_TRUE; - TAO_InputCDR *stream = (TAO_InputCDR *) context; + TAO_InputCDR *stream = ACE_static_cast (TAO_InputCDR *, context); CORBA::ULong len; // On decode, omit the check against specified wstring bounds, and |