diff options
Diffstat (limited to 'TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp')
-rw-r--r-- | TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp b/TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp index 6f5ca7c53f0..3ab7a703ce3 100644 --- a/TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp +++ b/TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp @@ -39,7 +39,7 @@ Consumer::run (int argc, char* argv[]) { // ORB initialization boiler plate... CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, ""); + CORBA::ORB_init (argc, argv); // Do *NOT* make a copy because we don't want the ORB to outlive // the Consumer object. @@ -59,7 +59,7 @@ Consumer::run (int argc, char* argv[]) // Need to check return value for errors. if (CORBA::is_nil (naming_obj.in ())) - ACE_THROW_RETURN (CORBA::UNKNOWN (), 0); + throw CORBA::UNKNOWN (); this->naming_context_ = CosNaming::NamingContext::_narrow (naming_obj.in ()); @@ -113,10 +113,6 @@ Consumer::run (int argc, char* argv[]) void Consumer::push (const CORBA::Any &event) - ACE_THROW_SPEC (( - CORBA::SystemException, - CosEventComm::Disconnected - )) { ACE_UNUSED_ARG (event); @@ -130,9 +126,6 @@ Consumer::push (const CORBA::Any &event) void Consumer::disconnect_push_consumer (void) - ACE_THROW_SPEC (( - CORBA::SystemException - )) { this->proxy_supplier_-> disconnect_push_supplier(); @@ -142,10 +135,6 @@ void Consumer::offer_change (const CosNotification::EventTypeSeq & /*added*/, const CosNotification::EventTypeSeq & /*removed*/) - ACE_THROW_SPEC (( - CORBA::SystemException, - CosNotifyComm::InvalidEventType - )) { // No-Op. } |