diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2023-02-13 14:33:33 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2023-02-13 14:33:33 +0100 |
commit | 53cabe442f3b082ee21458dfa2095fd0b5b0ba6b (patch) | |
tree | e72303ead175e71b3ab200bb9b817b16dc93b971 /TAO/tao/PortableServer/Default_Acceptor_Filter.cpp | |
parent | 48b96dee6147efa609f1536296929489203f3193 (diff) | |
download | ATCD-53cabe442f3b082ee21458dfa2095fd0b5b0ba6b.tar.gz |
Use default
* TAO/tao/PortableServer/Acceptor_Filter_Factory.cpp:
* TAO/tao/PortableServer/Default_Acceptor_Filter.cpp:
* TAO/tao/PortableServer/Default_Acceptor_Filter.h:
Diffstat (limited to 'TAO/tao/PortableServer/Default_Acceptor_Filter.cpp')
-rw-r--r-- | TAO/tao/PortableServer/Default_Acceptor_Filter.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp b/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp index ec9ae61a7a8..28024ce6c2b 100644 --- a/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp +++ b/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp @@ -6,10 +6,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Default_Acceptor_Filter::TAO_Default_Acceptor_Filter () -{ -} - int TAO_Default_Acceptor_Filter::fill_profile (const TAO::ObjectKey &object_key, TAO_MProfile &mprofile, @@ -18,14 +14,10 @@ TAO_Default_Acceptor_Filter::fill_profile (const TAO::ObjectKey &object_key, CORBA::Short priority) { // Go through all the acceptors. - for (TAO_Acceptor** acceptor = acceptors_begin; - acceptor != acceptors_end; - ++acceptor) + for (TAO_Acceptor** acceptor = acceptors_begin; acceptor != acceptors_end; ++acceptor) { // Ask each acceptor to make a profile. - if ((*acceptor)->create_profile (object_key, - mprofile, - priority) == -1) + if ((*acceptor)->create_profile (object_key, mprofile, priority) == -1) return -1; } @@ -37,9 +29,7 @@ TAO_Default_Acceptor_Filter::encode_endpoints (TAO_MProfile &mprofile) { // if -ORBUseSharedProfile is set, there may be multiple endpoints // per profile, even without priority. - for (CORBA::ULong i = 0; - i < mprofile.profile_count (); - ++i) + for (CORBA::ULong i = 0; i < mprofile.profile_count (); ++i) { TAO_Profile *profile = mprofile.get_profile (i); if (profile->encode_alternate_endpoints () == -1) |