summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp30
1 files changed, 14 insertions, 16 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp b/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp
index 5e005ee70c6..feff0864efc 100644
--- a/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp
@@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Event_LogConsumer::TAO_Event_LogConsumer (TAO_EventLog_i *log)
: log_ (log)
-{
+{
}
TAO_Event_LogConsumer::~TAO_Event_LogConsumer (void)
@@ -27,7 +27,7 @@ TAO_Event_LogConsumer::connect (CosEventChannelAdmin::ConsumerAdmin_ptr consumer
}
void
-TAO_Event_LogConsumer::push (const CORBA::Any& data ACE_ENV_ARG_DECL)
+TAO_Event_LogConsumer::push (const CORBA::Any& data)
ACE_THROW_SPEC ((
CORBA::SystemException,
CosEventComm::Disconnected
@@ -63,38 +63,36 @@ ACE_THROW_SPEC ((
//
// I have submitted a defect report to the OMG for clarification.
// --jtc
- ACE_TRY
+ try
{
// log the RecordList.
- this->log_->write_recordlist (recList ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ this->log_->write_recordlist (recList);
}
- ACE_CATCH (DsLogAdmin::LogFull, ex)
+ catch (const DsLogAdmin::LogFull& )
{
- ACE_THROW (CORBA::NO_RESOURCES ());
+ throw CORBA::NO_RESOURCES ();
}
- ACE_CATCH (DsLogAdmin::LogOffDuty, ex)
+ catch (const DsLogAdmin::LogOffDuty& )
{
- ACE_THROW (CORBA::NO_RESOURCES ());
+ throw CORBA::NO_RESOURCES ();
}
- ACE_CATCH (DsLogAdmin::LogLocked, ex)
+ catch (const DsLogAdmin::LogLocked& )
{
- ACE_THROW (CORBA::NO_PERMISSION ());
+ throw CORBA::NO_PERMISSION ();
}
- ACE_CATCH (DsLogAdmin::LogDisabled, ex)
+ catch (const DsLogAdmin::LogDisabled& )
{
- ACE_THROW (CORBA::TRANSIENT ());
+ throw CORBA::TRANSIENT ();
}
- ACE_ENDTRY;
}
void
-TAO_Event_LogConsumer::disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL)
+TAO_Event_LogConsumer::disconnect_push_consumer (void)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
- this->supplier_proxy_->disconnect_push_supplier (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->supplier_proxy_->disconnect_push_supplier ();
}
TAO_END_VERSIONED_NAMESPACE_DECL