diff options
Diffstat (limited to 'TAO/orbsvcs/Event_Service/Event_Service.cpp')
-rw-r--r-- | TAO/orbsvcs/Event_Service/Event_Service.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/TAO/orbsvcs/Event_Service/Event_Service.cpp b/TAO/orbsvcs/Event_Service/Event_Service.cpp index 93118609611..24a2eabb401 100644 --- a/TAO/orbsvcs/Event_Service/Event_Service.cpp +++ b/TAO/orbsvcs/Event_Service/Event_Service.cpp @@ -130,11 +130,10 @@ Event_Service::run (int argc, char* argv[]) { case ES_NEW: { - TAO_EC_Event_Channel_Attributes attr (root_poa.in (), - root_poa.in ()); TAO_EC_Event_Channel* ec; ACE_NEW_RETURN (ec, - TAO_EC_Event_Channel (attr), + TAO_EC_Event_Channel (root_poa.in (), + root_poa.in ()), 1); this->ec_impl_ = ec; ec->activate (ACE_TRY_ENV); @@ -183,7 +182,7 @@ Event_Service::run (int argc, char* argv[]) this->orb_->object_to_string (ec.in (), ACE_TRY_ENV); ACE_DEBUG ((LM_DEBUG, - "The EC IOR is <%s>\n", str.in ())); + "The EC IOR is <%s>\n", str.in ())); CosNaming::Name channel_name (1); channel_name.length (1); @@ -202,10 +201,10 @@ Event_Service::run (int argc, char* argv[]) ACE_TRY_CHECK; if (!CORBA::is_nil (scheduler.in ())) - { - naming_context->unbind (schedule_name, ACE_TRY_ENV); - ACE_TRY_CHECK; - } + { + naming_context->unbind (schedule_name, ACE_TRY_ENV); + ACE_TRY_CHECK; + } } ACE_CATCHANY @@ -235,10 +234,10 @@ Event_Service::parse_args (int argc, char *argv []) this->service_name_ = get_opt.optarg; break; - case 's': - // It could be just a flag (i.e. no "global" or "local" - // argument, but this is consistent with the EC_Multiple - // test and also allows for a runtime scheduling service. + case 's': + // It could be just a flag (i.e. no "global" or "local" + // argument, but this is consistent with the EC_Multiple + // test and also allows for a runtime scheduling service. if (ACE_OS::strcasecmp (get_opt.optarg, "global") == 0) { |