diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-03-18 10:34:42 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-03-18 11:33:16 +0100 |
commit | 1e3a5bb9e92aea074d7350ccde0dae5c123e885d (patch) | |
tree | 1244921df6b85b0e7ba81e74043a72251be5070f /idlc/source/idlcmain.cxx | |
parent | 2980e65d9728cfee73c1c49d64e19af50f756521 (diff) |
Use for-range loops in hwpfilter, i18n*, idl* and io
Change-Id: I980464162b73ed9ee0a09acbca1b9050af8d1027
Reviewed-on: https://gerrit.libreoffice.org/51492
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'idlc/source/idlcmain.cxx')
-rw-r--r-- | idlc/source/idlcmain.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/idlc/source/idlcmain.cxx b/idlc/source/idlcmain.cxx index 3affd278ad77..0c4ded92be10 100644 --- a/idlc/source/idlcmain.cxx +++ b/idlc/source/idlcmain.cxx @@ -79,13 +79,14 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) options.getProgramName().getStr(), static_cast<int>(files.size()) ); fflush( stdout ); } - for (std::vector< OString >::const_iterator i(files.begin()); - i != files.end() && nErrors == 0; ++i) + for (auto const& elem : files) { - OString sysFileName( convertToAbsoluteSystemPath(*i) ); + if (nErrors) + break; + OString sysFileName( convertToAbsoluteSystemPath(elem) ); if ( !options.quiet() ) - fprintf(stdout, "Compiling: %s\n", (*i).getStr()); + fprintf(stdout, "Compiling: %s\n", elem.getStr()); nErrors = compileFile(&sysFileName); if ( idlc()->getWarningCount() && !options.quiet() ) @@ -93,7 +94,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) options.getProgramName().getStr(), sal::static_int_cast< unsigned long >( idlc()->getWarningCount()), - (*i).getStr()); + elem.getStr()); // prepare output file name OString const strippedFileName( |