diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-03-03 13:10:45 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-03 16:27:08 +0100 |
commit | 5af9e26ae8b463e85cb84f79a366c61d49a2d52b (patch) | |
tree | d8e001ed45e2a441e19864f8e2613317c9019ffa /cppu/source/threadpool/jobqueue.cxx | |
parent | 20b1a4589ee95e34afdb3c82834fe32e1ccb25fb (diff) |
Simplify containers iterations in cppcanvas, cppu, cppuhelper
Use range-based loop or replace with STL functions
Change-Id: I72bf7cdb632c04e2fc8d4f7ab85cb6571222aa07
Reviewed-on: https://gerrit.libreoffice.org/68636
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppu/source/threadpool/jobqueue.cxx')
-rw-r--r-- | cppu/source/threadpool/jobqueue.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cppu/source/threadpool/jobqueue.cxx b/cppu/source/threadpool/jobqueue.cxx index 2d375dcf8bbd..6c9324521f40 100644 --- a/cppu/source/threadpool/jobqueue.cxx +++ b/cppu/source/threadpool/jobqueue.cxx @@ -129,13 +129,11 @@ namespace cppu_threadpool { void JobQueue::dispose( sal_Int64 nDisposeId ) { MutexGuard guard( m_mutex ); - for( auto ii = m_lstCallstack.begin() ; - ii != m_lstCallstack.end() ; - ++ii ) + for( auto& rId : m_lstCallstack ) { - if( (*ii) == nDisposeId ) + if( rId == nDisposeId ) { - (*ii) = 0; + rId = 0; } } |