summaryrefslogtreecommitdiff
path: root/jvmaccess
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-03-18 12:36:02 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-03-25 15:14:44 +0200
commitf365b17bf170c8ed1baae299a2d719774fcc4305 (patch)
tree312378ff5e6ef487ab65d7a1d011307486941c56 /jvmaccess
parentdd5df4ccb33048fa5fa8f85b2e6e69a6a225be57 (diff)
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 <noel.grandin@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'jvmaccess')
-rw-r--r--jvmaccess/source/classpath.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/jvmaccess/source/classpath.cxx b/jvmaccess/source/classpath.cxx
index 6a5ccf87b1d4..4be1fedb7d26 100644
--- a/jvmaccess/source/classpath.cxx
+++ b/jvmaccess/source/classpath.cxx
@@ -93,9 +93,9 @@ jobjectArray jvmaccess::ClassPath::translateToUrls(
return nullptr;
}
jsize idx = 0;
- for (std::vector< jobject >::iterator i(urls.begin()); i != urls.end(); ++i)
+ for (auto const& url : urls)
{
- environment->SetObjectArrayElement(result, idx++, *i);
+ environment->SetObjectArrayElement(result, idx++, url);
}
return result;
}