summaryrefslogtreecommitdiff
path: root/TAO/tests/OBV/Factory
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-06-17 15:09:25 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-06-17 15:09:25 +0000
commitb6b3d651a79ba2274fd3cf91c2b1bf5ea00cacd0 (patch)
tree322f3df305d9c8338bb17bd0d4119377a61c7c56 /TAO/tests/OBV/Factory
parent5c6e27500cde3fed1956b431028fbf26a44b884b (diff)
downloadATCD-b6b3d651a79ba2274fd3cf91c2b1bf5ea00cacd0.tar.gz
ChangeLogTag: Tue Jun 17 09:56:38 2003 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/tests/OBV/Factory')
-rw-r--r--TAO/tests/OBV/Factory/FactoryC_impl.cpp23
-rw-r--r--TAO/tests/OBV/Factory/FactoryC_impl.h10
2 files changed, 23 insertions, 10 deletions
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: