From b6b3d651a79ba2274fd3cf91c2b1bf5ea00cacd0 Mon Sep 17 00:00:00 2001 From: parsons Date: Tue, 17 Jun 2003 15:09:25 +0000 Subject: ChangeLogTag: Tue Jun 17 09:56:38 2003 Jeff Parsons --- TAO/tests/OBV/Factory/FactoryC_impl.cpp | 23 +++++++++++++++-------- TAO/tests/OBV/Factory/FactoryC_impl.h | 10 ++++++++-- 2 files changed, 23 insertions(+), 10 deletions(-) (limited to 'TAO/tests/OBV/Factory') diff --git a/TAO/tests/OBV/Factory/FactoryC_impl.cpp b/TAO/tests/OBV/Factory/FactoryC_impl.cpp index c0091003338..652740765c7 100644 --- a/TAO/tests/OBV/Factory/FactoryC_impl.cpp +++ b/TAO/tests/OBV/Factory/FactoryC_impl.cpp @@ -6,6 +6,9 @@ ACE_RCSID(Factory, FactoryC_impl, "$Id$") OBV_FactoryTest::Value2* Value2_init_impl::create_default (CORBA::ULong id) + ACE_THROW_SPEC (( + CORBA::SystemException + )) { OBV_FactoryTest::Value2* ret_val = 0; ACE_NEW_RETURN (ret_val, @@ -13,9 +16,9 @@ Value2_init_impl::create_default (CORBA::ULong id) 0); if (ret_val) - { - ret_val->id (id); - } + { + ret_val->id (id); + } return ret_val; } @@ -23,7 +26,11 @@ Value2_init_impl::create_default (CORBA::ULong id) OBV_FactoryTest::Value2* Value2_init_impl::create ( CORBA::ULong id, - const OBV_FactoryTest::BaseValue::BV_Data & data) + const OBV_FactoryTest::BaseValue::BV_Data & data + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) { OBV_FactoryTest::Value2* ret_val = 0; ACE_NEW_RETURN (ret_val, @@ -31,10 +38,10 @@ Value2_init_impl::create ( 0); if (ret_val) - { - ret_val->id (id); - ret_val->data (data); - } + { + ret_val->id (id); + ret_val->data (data); + } return ret_val; } diff --git a/TAO/tests/OBV/Factory/FactoryC_impl.h b/TAO/tests/OBV/Factory/FactoryC_impl.h index 2f1791745d8..6863db9d262 100644 --- a/TAO/tests/OBV/Factory/FactoryC_impl.h +++ b/TAO/tests/OBV/Factory/FactoryC_impl.h @@ -44,12 +44,18 @@ public: virtual OBV_FactoryTest::Value2* create_default ( CORBA::ULong id - ); + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )); virtual OBV_FactoryTest::Value2* create ( CORBA::ULong id, const OBV_FactoryTest::BaseValue::BV_Data & data - ); + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )); public: -- cgit v1.2.1