diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-09 15:22:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-09 16:14:30 +0200 |
commit | 555ee51b77a789253bffdd9ffb16bdc5e51b980a (patch) | |
tree | 501abf83f3825ed790bd66f92c15026dd27c2221 /codemaker/source/javamaker/javamaker.cxx | |
parent | a6f16879922ee237db268ad19328009242b3ca6d (diff) |
convert to range-based for loops in codemaker/
Change-Id: Ifa521f34a8d9565bb61743c4a996bcba37e95ec2
Diffstat (limited to 'codemaker/source/javamaker/javamaker.cxx')
-rw-r--r-- | codemaker/source/javamaker/javamaker.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/codemaker/source/javamaker/javamaker.cxx b/codemaker/source/javamaker/javamaker.cxx index b711806a3b55..282d474c7fc4 100644 --- a/codemaker/source/javamaker/javamaker.cxx +++ b/codemaker/source/javamaker/javamaker.cxx @@ -44,17 +44,13 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { } rtl::Reference< TypeManager > typeMgr(new TypeManager); - for (std::vector< rtl::OString >::const_iterator i( - options.getExtraInputFiles().begin()); - i != options.getExtraInputFiles().end(); ++i) + for (const OString& i : options.getExtraInputFiles()) { - typeMgr->loadProvider(convertToFileUrl(*i), false); + typeMgr->loadProvider(convertToFileUrl(i), false); } - for (std::vector< rtl::OString >::const_iterator i( - options.getInputFiles().begin()); - i != options.getInputFiles().end(); ++i) + for (const OString& i : options.getInputFiles()) { - typeMgr->loadProvider(convertToFileUrl(*i), true); + typeMgr->loadProvider(convertToFileUrl(i), true); } codemaker::GeneratedTypeSet generated; if (options.isValid("-T")) { |