summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp34
1 files changed, 13 insertions, 21 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp
index be2f9f74299..0a258fecdf5 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp
@@ -26,7 +26,7 @@ TAO_Notify_SequenceProxyPushSupplier::release (void)
}
void
-TAO_Notify_SequenceProxyPushSupplier::connect_sequence_push_consumer (CosNotifyComm::SequencePushConsumer_ptr push_consumer ACE_ENV_ARG_DECL)
+TAO_Notify_SequenceProxyPushSupplier::connect_sequence_push_consumer (CosNotifyComm::SequencePushConsumer_ptr push_consumer)
ACE_THROW_SPEC ((
CORBA::SystemException
, CosEventChannelAdmin::AlreadyConnected
@@ -39,29 +39,26 @@ TAO_Notify_SequenceProxyPushSupplier::connect_sequence_push_consumer (CosNotifyC
TAO_Notify_SequencePushConsumer (this),
CORBA::NO_MEMORY ());
- consumer->init (push_consumer ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ consumer->init (push_consumer);
- this->connect (consumer ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- this->self_change (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->connect (consumer);
+ this->self_change ();
}
void
-TAO_Notify_SequenceProxyPushSupplier::disconnect_sequence_push_supplier (ACE_ENV_SINGLE_ARG_DECL)
+TAO_Notify_SequenceProxyPushSupplier::disconnect_sequence_push_supplier (void)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
TAO_Notify_SequenceProxyPushSupplier::Ptr guard( this );
- this->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- this->self_change (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->destroy ();
+ this->self_change ();
}
CosNotifyChannelAdmin::ProxyType
-TAO_Notify_SequenceProxyPushSupplier::MyType (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_Notify_SequenceProxyPushSupplier::MyType (void)
ACE_THROW_SPEC ((
CORBA::SystemException
))
@@ -83,25 +80,20 @@ TAO_Notify_SequenceProxyPushSupplier::load_attrs (const TAO_Notify::NVPList& att
if (attrs.load("PeerIOR", ior))
{
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
+ try
{
CosNotifyComm::SequencePushConsumer_var pc = CosNotifyComm::SequencePushConsumer::_nil();
if (ior.length() > 0)
{
- CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- pc = CosNotifyComm::SequencePushConsumer::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ CORBA::Object_var obj = orb->string_to_object(ior.c_str());
+ pc = CosNotifyComm::SequencePushConsumer::_unchecked_narrow(obj.in());
}
- this->connect_sequence_push_consumer(pc.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ this->connect_sequence_push_consumer(pc.in());
}
- ACE_CATCHANY
+ catch (const CORBA::Exception&)
{
// if we can't reconnect, tough
}
- ACE_ENDTRY;
}
}