summaryrefslogtreecommitdiff
path: root/TAO/examples/Quoter
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Quoter')
-rw-r--r--TAO/examples/Quoter/Quoter_i.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/TAO/examples/Quoter/Quoter_i.cpp b/TAO/examples/Quoter/Quoter_i.cpp
index 18d0d690154..7ee6209844f 100644
--- a/TAO/examples/Quoter/Quoter_i.cpp
+++ b/TAO/examples/Quoter/Quoter_i.cpp
@@ -268,8 +268,8 @@ CosLifeCycle::LifeCycleObject::_nil ();
// Move this object using <there> and <the_criteria>
void
-Quoter_i::move (CosLifeCycle::FactoryFinder_ptr there,
- const CosLifeCycle::Criteria &the_criteria,
+Quoter_i::move (CosLifeCycle::FactoryFinder_ptr /* there */,
+ const CosLifeCycle::Criteria & /* the_criteria */,
CORBA::Environment &ACE_TRY_ENV)
ACE_THROW_SPEC ((CORBA::SystemException,
CosLifeCycle::NoFactory,
@@ -277,14 +277,10 @@ Quoter_i::move (CosLifeCycle::FactoryFinder_ptr there,
CosLifeCycle::InvalidCriteria,
CosLifeCycle::CannotMeetCriteria))
{
- ACE_UNUSED_ARG (there);
- ACE_UNUSED_ARG (the_criteria);
-
- ACE_ERROR ((LM_ERROR,
- "Quoter_i::move: The Quoter object is not movable!"));
-
- ACE_THROW (new CosLifeCycle::NotMovable);
+ ACE_ERROR ((LM_ERROR,
+ "Quoter_i::move: The Quoter object is not movable!"));
+ ACE_THROW (CosLifeCycle::NotMovable());
}