From f365b17bf170c8ed1baae299a2d719774fcc4305 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 18 Mar 2018 12:36:02 +0100 Subject: Use for-range loops in some modules jvmaccess, jvmfwk, l10ntools, libreofficekit and linguistic Change-Id: I9d290d1098b25ccb3aee19d2df18c18f4aa65105 Reviewed-on: https://gerrit.libreoffice.org/51495 Reviewed-by: Noel Grandin Tested-by: Jenkins Reviewed-by: Julien Nabet --- jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'jvmfwk') 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; -- cgit