diff options
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( |