summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-09 23:01:03 +0000
committerkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-09 23:01:03 +0000
commitb030df9041ffc3f47174b02126a86ece40997e9b (patch)
tree2266e6452ac3a7df1472bc92a4eab82270f2c494
parent9bae92a74043f9a3cfc0c07b2c48edc66f14c77a (diff)
downloadATCD-b030df9041ffc3f47174b02126a86ece40997e9b.tar.gz
made the Dynamic::ParameterList_var simply a pointer to resolve memory
problems
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/interceptors.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/TAO/tests/Portable_Interceptors/Dynamic/interceptors.cpp b/TAO/tests/Portable_Interceptors/Dynamic/interceptors.cpp
index ae7013d745e..5d20fc416e4 100644
--- a/TAO/tests/Portable_Interceptors/Dynamic/interceptors.cpp
+++ b/TAO/tests/Portable_Interceptors/Dynamic/interceptors.cpp
@@ -43,7 +43,7 @@ Echo_Client_Request_Interceptor::name (CORBA::Environment &)
void
Echo_Client_Request_Interceptor::send_request (PortableInterceptor::ClientRequestInfo_ptr ri,
- CORBA::Environment &ACE_TRY_ENV)
+ CORBA::Environment &)
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest))
{
@@ -72,12 +72,12 @@ Echo_Client_Request_Interceptor::send_request (PortableInterceptor::ClientReques
if (ACE_OS::strcmp (ri->operation (), "normal") == 0)
{
- /* Dynamic::ParameterList_var paramlist = ri->arguments ();
+ Dynamic::ParameterList * paramlist = ri->arguments ();
CORBA::Long param;
(*paramlist)[0].argument >>= param;
- cout << "the arg is " << param <<endl;*/
- }
+ cout << "the arg is " << param <<endl;
+ }
}
void
@@ -104,12 +104,12 @@ Echo_Client_Request_Interceptor::receive_reply (PortableInterceptor::ClientReque
buf));
if (ACE_OS::strcmp (ri->operation (), "normal") == 0)
{
- /*Dynamic::ParameterList_var paramlist = ri->arguments ();
+ Dynamic::ParameterList *paramlist = ri->arguments ();
CORBA::Long param;
(*paramlist)[0].argument >>= param;
cout << "the arg is " << param <<endl;
- */ }
+ }
}
@@ -202,13 +202,13 @@ Echo_Server_Request_Interceptor::receive_request (PortableInterceptor::ServerReq
if (ACE_OS::strcmp (ri->operation (), "normal") == 0)
- {/*
- Dynamic::ParameterList_var paramlist = ri->arguments ();
+ {
+ Dynamic::ParameterList *paramlist = ri->arguments ();
CORBA::Long param;
(*paramlist)[0].argument >>= param;
cout << "the arg is " << param <<endl;
- */ }
+ }
}
@@ -238,12 +238,12 @@ Echo_Server_Request_Interceptor::send_reply (PortableInterceptor::ServerRequestI
if (ACE_OS::strcmp (ri->operation (), "normal") == 0)
{
- /* Dynamic::ParameterList_var paramlist = ri->arguments ();
+ Dynamic::ParameterList *paramlist = ri->arguments ();
CORBA::Long param;
(*paramlist)[0].argument >>= param;
cout << "the arg is " << param <<endl;
- */ }
+ }
}
void