diff options
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 7 | ||||
-rw-r--r-- | TAO/tao/Stub.cpp | 14 |
2 files changed, 14 insertions, 7 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index 709ed82fa69..a2a73d39092 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -1,3 +1,10 @@ +Thu Feb 15 11:47:53 2001 Angelo Corsaro <corsaro@cs.wustl.edu> + + * tao/Stub.cpp (parse_policies): + Removed extra parenthesis and changed index type to CORBA::ULong + in the policy list. This should definitively fix the + error/warning on any platform. Thanks to Jeff for the hint. + Thu Feb 15 11:09:50 2001 Angelo Corsaro <corsaro@cs.wustl.edu> * tao/PortableServer/POA.cpp (key_to_stub_i): diff --git a/TAO/tao/Stub.cpp b/TAO/tao/Stub.cpp index 91d28d1d931..dee76e252d0 100644 --- a/TAO/tao/Stub.cpp +++ b/TAO/tao/Stub.cpp @@ -338,19 +338,19 @@ TAO_Stub::parse_policies (CORBA::Environment &ACE_TRY_ENV) // this->orb_core ()->get_protocols_hooks ()->call_policy_type_hook (policy_list, // policy_type); - for (unsigned int i = 0; i < length; ++i) + for (CORBA::ULong i = 0; i < length; ++i) { - if (((policy_list)[i]->policy_type () == + if ((policy_list[i]->policy_type () == RTCORBA::PRIORITY_MODEL_POLICY_TYPE)) - this->exposed_priority_model ((policy_list)[i].in ()); + this->exposed_priority_model (policy_list[i].in ()); - else if (((policy_list)[i]->policy_type () == + else if ((policy_list[i]->policy_type () == RTCORBA::PRIORITY_BANDED_CONNECTION_POLICY_TYPE)) - this->exposed_priority_banded_connection ((policy_list)[i].in ()); + this->exposed_priority_banded_connection (policy_list[i].in ()); - else if (((policy_list)[i]->policy_type () == + else if ((policy_list[i]->policy_type () == RTCORBA::CLIENT_PROTOCOL_POLICY_TYPE)) - this->exposed_client_protocol ((policy_list)[i].in ()); + this->exposed_client_protocol (policy_list[i].in ()); } this->are_policies_parsed_ = 1; |