diff options
Diffstat (limited to 'TAO/tests/Param_Test/bd_str_seq.cpp')
-rw-r--r-- | TAO/tests/Param_Test/bd_str_seq.cpp | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/TAO/tests/Param_Test/bd_str_seq.cpp b/TAO/tests/Param_Test/bd_str_seq.cpp index b41de5b6c4f..968ebaaa976 100644 --- a/TAO/tests/Param_Test/bd_str_seq.cpp +++ b/TAO/tests/Param_Test/bd_str_seq.cpp @@ -49,8 +49,7 @@ Test_Bounded_String_Sequence::opname (void) const } void -Test_Bounded_String_Sequence::dii_req_invoke (CORBA::Request *req - ACE_ENV_ARG_DECL) +Test_Bounded_String_Sequence::dii_req_invoke (CORBA::Request *req) { req->add_in_arg ("s1") <<= this->in_.in (); req->add_inout_arg ("s2") <<= this->inout_.in (); @@ -65,19 +64,18 @@ Test_Bounded_String_Sequence::dii_req_invoke (CORBA::Request *req this->ret_ = new Param_Test::Bounded_StrSeq (*tmp); CORBA::NamedValue_ptr arg2 = - req->arguments ()->item (1 ACE_ENV_ARG_PARAMETER); + req->arguments ()->item (1); *arg2->value () >>= tmp; this->inout_ = new Param_Test::Bounded_StrSeq (*tmp); CORBA::NamedValue_ptr arg3 = - req->arguments ()->item (2 ACE_ENV_ARG_PARAMETER); + req->arguments ()->item (2); *arg3->value () >>= tmp; this->out_ = new Param_Test::Bounded_StrSeq (*tmp); } int -Test_Bounded_String_Sequence::init_parameters (Param_Test_ptr - ACE_ENV_ARG_DECL_NOT_USED) +Test_Bounded_String_Sequence::init_parameters (Param_Test_ptr) { const char *choiceList[] = { @@ -110,27 +108,23 @@ Test_Bounded_String_Sequence::reset_parameters (void) } int -Test_Bounded_String_Sequence::run_sii_test (Param_Test_ptr objref - ACE_ENV_ARG_DECL) +Test_Bounded_String_Sequence::run_sii_test (Param_Test_ptr objref) { - ACE_TRY + try { Param_Test::Bounded_StrSeq_out out (this->out_.out ()); this->ret_ = objref->test_bounded_strseq (this->in_.in (), this->inout_.inout (), - out - ACE_ENV_ARG_PARAMETER); + out); return 0; } - ACE_CATCHANY + catch (const CORBA::Exception& ex) { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "Test_Bounded_String_Sequence::run_sii_test\n"); + ex._tao_print_exception ("Test_Bounded_String_Sequence::run_sii_test\n"); } - ACE_ENDTRY; return -1; } |