summaryrefslogtreecommitdiff
path: root/TAO/tests/Collocation/Collocation_Tester.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Collocation/Collocation_Tester.cpp')
-rw-r--r--TAO/tests/Collocation/Collocation_Tester.cpp36
1 files changed, 15 insertions, 21 deletions
diff --git a/TAO/tests/Collocation/Collocation_Tester.cpp b/TAO/tests/Collocation/Collocation_Tester.cpp
index ce1cbb86569..0a9a1a942a7 100644
--- a/TAO/tests/Collocation/Collocation_Tester.cpp
+++ b/TAO/tests/Collocation/Collocation_Tester.cpp
@@ -23,15 +23,15 @@ Collocation_Test::Collocation_Test (void)
void
Collocation_Test::shutdown (void)
{
- this->root_poa_->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
+ this->root_poa_->destroy (1, 1);
this->orb_->destroy ();
}
int
-Collocation_Test::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
+Collocation_Test::init (int argc, char *argv[])
{
// Initialize the ORB.
- this->orb_ = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ this->orb_ = CORBA::ORB_init (argc, argv, 0);
int result = this->parse_args (argc, argv);
if (result != 0)
@@ -39,11 +39,11 @@ Collocation_Test::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
// Get an Object reference to RootPOA.
CORBA::Object_var obj =
- this->orb_->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
+ this->orb_->resolve_initial_references ("RootPOA");
// Narrow the Object reference to a POA reference
this->root_poa_ =
- PortableServer::POA::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
+ PortableServer::POA::_narrow (obj.in ());
// Get the POAManager of RootPOA
this->poa_manager_ =
@@ -51,31 +51,25 @@ Collocation_Test::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
// Activate the diamond servant and its base classes under RootPOA.
PortableServer::ObjectId_var id =
- this->root_poa_->activate_object (&this->top_servant_
- ACE_ENV_ARG_PARAMETER);
+ this->root_poa_->activate_object (&this->top_servant_);
// // We only care about the most derived class here.
// this->diamond_obj_ = this->diamond_servant_._this ();
id =
- this->root_poa_->activate_object (&this->diamond_servant_
- ACE_ENV_ARG_PARAMETER);
+ this->root_poa_->activate_object (&this->diamond_servant_);
// We only care about the most derived class here.
- this->diamond_obj_ = this->root_poa_->id_to_reference (id.in ()
- ACE_ENV_ARG_PARAMETER);
+ this->diamond_obj_ = this->root_poa_->id_to_reference (id.in ());
id =
- this->root_poa_->activate_object (&this->left_servant_
- ACE_ENV_ARG_PARAMETER);
+ this->root_poa_->activate_object (&this->left_servant_);
id =
- this->root_poa_->activate_object (&this->right_servant_
- ACE_ENV_ARG_PARAMETER);
+ this->root_poa_->activate_object (&this->right_servant_);
CORBA::String_var str =
- this->orb_->object_to_string (this->diamond_obj_.in ()
- ACE_ENV_ARG_PARAMETER);
+ this->orb_->object_to_string (this->diamond_obj_.in ());
ACE_DEBUG ((LM_DEBUG, "Diamond Servant activated:\n %s\n",
str.in()));
@@ -96,16 +90,16 @@ int
Collocation_Test::test_narrow (void)
{
Diamond::Top_var top =
- Diamond::Top::_narrow (this->diamond_obj_.in () ACE_ENV_ARG_PARAMETER);
+ Diamond::Top::_narrow (this->diamond_obj_.in ());
Diamond::Left_var left =
- Diamond::Left::_narrow (this->diamond_obj_.in () ACE_ENV_ARG_PARAMETER);
+ Diamond::Left::_narrow (this->diamond_obj_.in ());
Diamond::Right_var right =
- Diamond::Right::_narrow (this->diamond_obj_.in () ACE_ENV_ARG_PARAMETER);
+ Diamond::Right::_narrow (this->diamond_obj_.in ());
Diamond::Buttom_var buttom =
- Diamond::Buttom::_narrow (this->diamond_obj_.in () ACE_ENV_ARG_PARAMETER);
+ Diamond::Buttom::_narrow (this->diamond_obj_.in ());
CORBA::String_var str = top->shape ();
ACE_DEBUG ((LM_DEBUG, "Calling top->shape: %s\n", str.in ()));