diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-03-17 21:42:27 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-03-17 23:08:48 +0100 |
commit | 823ef9ef3238efd92895254e0f8042ff1e543bb6 (patch) | |
tree | 08d58131644869f46319b246b919a33bbf64f46e /framework/source/jobs | |
parent | b9cf7da2907f759c98b801939e7c04cf0b80388f (diff) |
Use for-range loops in framework
Change-Id: I72ea832848fd7c76863bcee70a3303de488c0b0f
Reviewed-on: https://gerrit.libreoffice.org/51471
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'framework/source/jobs')
-rw-r--r-- | framework/source/jobs/jobexecutor.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/framework/source/jobs/jobexecutor.cxx b/framework/source/jobs/jobexecutor.cxx index 7c9d70479120..ac76776a2934 100644 --- a/framework/source/jobs/jobexecutor.cxx +++ b/framework/source/jobs/jobexecutor.cxx @@ -293,17 +293,14 @@ void SAL_CALL JobExecutor::notifyEvent( const css::document::EventObject& aEvent } /* SAFE */ // step over all enabled jobs and execute it - ::std::vector< JobData::TJob2DocEventBinding >::const_iterator pIt; - for ( pIt = lJobs.begin(); - pIt != lJobs.end(); - ++pIt ) + for (auto const& lJob : lJobs) { rtl::Reference<Job> pJob; /* SAFE */ { SolarMutexGuard g2; - const JobData::TJob2DocEventBinding& rBinding = *pIt; + const JobData::TJob2DocEventBinding& rBinding = lJob; JobData aCfg(m_xContext); aCfg.setEvent(rBinding.m_sDocEvent, rBinding.m_sJobName); |