c++11: use for(auto...) to simplify code in src/bin/.

* src/bin/common_finput.cc, src/bin/genltl.cc, src/bin/ltlcross.cc,
src/bin/randltl.cc: Simplify.
This commit is contained in:
Alexandre Duret-Lutz 2013-12-15 23:50:42 +01:00
parent 34e91b7656
commit 557292bd11
4 changed files with 22 additions and 31 deletions

View file

@ -343,13 +343,14 @@ int
job_processor::run()
{
int error = 0;
jobs_t::const_iterator i;
for (i = jobs.begin(); i != jobs.end() && !abort_run; ++i)
for (auto& j: jobs)
{
if (!i->file_p)
error |= process_string(i->str);
if (!j.file_p)
error |= process_string(j.str);
else
error |= process_file(i->str);
error |= process_file(j.str);
if (abort_run)
break;
}
return error;
}