diff options
Diffstat (limited to 'TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ClientInterceptor.cpp')
-rw-r--r-- | TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ClientInterceptor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ClientInterceptor.cpp b/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ClientInterceptor.cpp index 443e4432a05..ce2a66ddb01 100644 --- a/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ClientInterceptor.cpp +++ b/TAO/DevGuideExamples/PortableInterceptors/SimpleCodec/ClientInterceptor.cpp @@ -65,11 +65,10 @@ ClientInterceptor::send_request ( CORBA::Any gid_as_any; gid_as_any <<= gid; - sc.context_data = reinterpret_cast<CORBA::OctetSeq&> ( - *codec->encode(gid_as_any)); + sc.context_data = *codec->encode(gid_as_any); // Add this context to the service context list. - ri->add_request_service_context (sc, 0); + ri->add_request_service_context (sc, false); } |