diff options
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; } } |