diff options
Diffstat (limited to 'jvmfwk')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx index 187a2789b4cc..dfa4653054cc 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx @@ -614,10 +614,9 @@ bool getJavaInfoFromRegistry(const wchar_t* szRegKey, { bool bAppend= true; //iterate over the vector with java home strings - for(auto itHome= vecJavaHome.begin(); - itHome != vecJavaHome.end(); ++itHome) + for (auto const& javaHome : vecJavaHome) { - if(usHomeUrl.equals(*itHome)) + if(usHomeUrl.equals(javaHome)) { bAppend= false; break; |