diff options
Diffstat (limited to 'TAO/tests/Two_Objects/Object_Factory_i.cpp')
-rw-r--r-- | TAO/tests/Two_Objects/Object_Factory_i.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/TAO/tests/Two_Objects/Object_Factory_i.cpp b/TAO/tests/Two_Objects/Object_Factory_i.cpp index 368c3aa94ed..79fc22d1eb4 100644 --- a/TAO/tests/Two_Objects/Object_Factory_i.cpp +++ b/TAO/tests/Two_Objects/Object_Factory_i.cpp @@ -18,7 +18,7 @@ Object_Factory_i::Object_Factory_i (CORBA::ORB_ptr orb, CORBA::ULong len) //factory method to create first object Two_Objects_Test::First_ptr -Object_Factory_i::create_first (ACE_ENV_SINGLE_ARG_DECL) +Object_Factory_i::create_first (void) ACE_THROW_SPEC ((CORBA::SystemException)) { First_i *first_impl; @@ -36,7 +36,7 @@ Object_Factory_i::create_first (ACE_ENV_SINGLE_ARG_DECL) //factory method to create second object Two_Objects_Test::Second_ptr -Object_Factory_i::create_second (ACE_ENV_SINGLE_ARG_DECL) +Object_Factory_i::create_second (void) ACE_THROW_SPEC ((CORBA::SystemException)) { Second_i *second_impl; @@ -47,8 +47,7 @@ Object_Factory_i::create_second (ACE_ENV_SINGLE_ARG_DECL) CORBA::NO_MEMORY ()); Two_Objects_Test::Second_var second = - second_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK_RETURN (Two_Objects_Test::Second::_nil ()); + second_impl->_this (); return second._retn(); } |