summaryrefslogtreecommitdiff
path: root/TAO/DevGuideExamples/PortableInterceptors/IOR/ClientInterceptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/DevGuideExamples/PortableInterceptors/IOR/ClientInterceptor.cpp')
-rw-r--r--TAO/DevGuideExamples/PortableInterceptors/IOR/ClientInterceptor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/TAO/DevGuideExamples/PortableInterceptors/IOR/ClientInterceptor.cpp b/TAO/DevGuideExamples/PortableInterceptors/IOR/ClientInterceptor.cpp
index 37e08c681e0..cec3d86ddf5 100644
--- a/TAO/DevGuideExamples/PortableInterceptors/IOR/ClientInterceptor.cpp
+++ b/TAO/DevGuideExamples/PortableInterceptors/IOR/ClientInterceptor.cpp
@@ -82,11 +82,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);
}