summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp')
-rw-r--r--TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp b/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
index 431ca90b91b..1507a34bb43 100644
--- a/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
+++ b/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
@@ -51,17 +51,17 @@ test_i::~test_i (void)
{
ACE_TRY_NEW_ENV
{
- PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
+ PortableServer::POA_var poa = this->_default_POA (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- PortableServer::ObjectId_var id = poa->servant_to_id (this->other_,
- ACE_TRY_ENV);
+ PortableServer::ObjectId_var id = poa->servant_to_id (this->other_
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "(%t) Deactivating other servant\n"));
- poa->deactivate_object (id.in (),
- ACE_TRY_ENV);
+ poa->deactivate_object (id.in ()
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -81,56 +81,56 @@ main (int argc, char **argv)
// Initialize the ORB first.
CORBA::ORB_var orb = CORBA::ORB_init (argc,
argv,
- 0,
- ACE_TRY_ENV);
+ 0
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Obtain the RootPOA.
CORBA::Object_var obj =
- orb->resolve_initial_references ("RootPOA",
- ACE_TRY_ENV);
+ orb->resolve_initial_references ("RootPOA"
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Get the POA_var object from Object_var.
PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (obj.in (),
- ACE_TRY_ENV);
+ PortableServer::POA::_narrow (obj.in ()
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Get the POAManager of the RootPOA.
PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_TRY_ENV);
+ root_poa->the_POAManager (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- poa_manager->activate (ACE_TRY_ENV);
+ poa_manager->activate (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
test_i *servant1 = new test_i (0);
test_i *servant2 = new test_i (servant1);
PortableServer::ObjectId_var id1 =
- root_poa->activate_object (servant1,
- ACE_TRY_ENV);
+ root_poa->activate_object (servant1
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Give ownership to POA.
servant1->_remove_ref ();
PortableServer::ObjectId_var id2 =
- root_poa->activate_object (servant2,
- ACE_TRY_ENV);
+ root_poa->activate_object (servant2
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Give ownership to POA.
servant2->_remove_ref ();
- root_poa->deactivate_object (id2.in (),
- ACE_TRY_ENV);
+ root_poa->deactivate_object (id2.in ()
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
+ 1
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY