diff options
Diffstat (limited to 'TAO/examples/POA/Generic_Servant/client.cpp')
-rw-r--r-- | TAO/examples/POA/Generic_Servant/client.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/TAO/examples/POA/Generic_Servant/client.cpp b/TAO/examples/POA/Generic_Servant/client.cpp index b96bf45b1e8..95254622d2a 100644 --- a/TAO/examples/POA/Generic_Servant/client.cpp +++ b/TAO/examples/POA/Generic_Servant/client.cpp @@ -155,15 +155,15 @@ read_IOR_from_file (void) int main (int argc, char **argv) { - ACE_DECLARE_NEW_CORBA_ENV; + TAO_ENV_DECLARE_NEW_ENV; ACE_TRY { // Initialize the ORB CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, - 0, - ACE_TRY_ENV); + 0 + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; // Initialize options based on command-line arguments. @@ -179,18 +179,18 @@ main (int argc, char **argv) } // Get an object reference from the argument string. - CORBA::Object_var object = orb->string_to_object (IOR, - ACE_TRY_ENV); + CORBA::Object_var object = orb->string_to_object (IOR + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; // Try to narrow the object reference to a Foo reference. - Foo_var foo = Foo::_narrow (object.in (), - ACE_TRY_ENV); + Foo_var foo = Foo::_narrow (object.in () + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; CORBA::String_var ior = - orb->object_to_string (foo.in (), - ACE_TRY_ENV); + orb->object_to_string (foo.in () + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; @@ -212,20 +212,20 @@ main (int argc, char **argv) if (oneway) { // Invoke the simply_doit() method of the foo reference. - foo->simply_doit (ACE_TRY_ENV); + foo->simply_doit (TAO_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; } else if (timed_operations) { // Invoke the timed_operation() method of the foo reference. - foo->timed_operation (timeout, - ACE_TRY_ENV); + foo->timed_operation (timeout + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; } else { // Invoke the doit() method of the foo reference. - result = foo->doit (ACE_TRY_ENV); + result = foo->doit (TAO_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; } } @@ -239,7 +239,7 @@ main (int argc, char **argv) if (shutdown_server) { - foo->shutdown (ACE_TRY_ENV); + foo->shutdown (TAO_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; } |