diff options
-rw-r--r-- | TAO/tao/Pluggable.cpp | 6 | ||||
-rw-r--r-- | TAO/tao/params.cpp | 8 |
2 files changed, 5 insertions, 9 deletions
diff --git a/TAO/tao/Pluggable.cpp b/TAO/tao/Pluggable.cpp index 304cacc572c..e22614b7015 100644 --- a/TAO/tao/Pluggable.cpp +++ b/TAO/tao/Pluggable.cpp @@ -281,11 +281,9 @@ TAO_Connector::make_mprofile (const char *string, CORBA::ULong profile_count = 1; // Number of endpoints in the IOR (initialized to 1) - for (size_t i = 0; - i < ior.length (); - ++i) + for (size_t j = 0; j != ior.length (); ++j) { - if (ior[i] == endpoint_delimiter) + if (ior[j] == endpoint_delimiter) profile_count++; } diff --git a/TAO/tao/params.cpp b/TAO/tao/params.cpp index 8059173c75e..0c0bf82167a 100644 --- a/TAO/tao/params.cpp +++ b/TAO/tao/params.cpp @@ -27,7 +27,7 @@ TAO_ORB_Parameters::~TAO_ORB_Parameters (void) delete this->ior_lookup_table_; } -int +int TAO_ORB_Parameters::parse_endpoints (ACE_CString &endpoints, TAO_EndpointSet &endpoints_list) { @@ -57,11 +57,9 @@ TAO_ORB_Parameters::parse_endpoints (ACE_CString &endpoints, { int endpoints_count = 1; - for (int i = 0; - i < length; - ++i) + for (int j = 0; j != length; ++j) { - if (endpoints[i] == endpoints_delimiter) + if (endpoints[j] == endpoints_delimiter) endpoints_count++; } |