diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-11-22 08:15:34 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-22 12:14:53 +0000 |
commit | aad80e0b9a9f481fb608f1681f6e8bc280872da8 (patch) | |
tree | 289e05ad98a9622f720a6bdbca0a7c719e901354 /cppu | |
parent | 0d6cd1a86bdbfdb4dcb763ef2b4ff06f3d465032 (diff) |
cppcheck:useInitializationList
Change-Id: I744ff3e268fbffca9499121f3567640934aaae51
Reviewed-on: https://gerrit.libreoffice.org/20110
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/threadpool/jobqueue.cxx | 4 | ||||
-rw-r--r-- | cppu/source/threadpool/threadpool.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cppu/source/threadpool/jobqueue.cxx b/cppu/source/threadpool/jobqueue.cxx index 094a55ef9372..447b0a20a532 100644 --- a/cppu/source/threadpool/jobqueue.cxx +++ b/cppu/source/threadpool/jobqueue.cxx @@ -28,9 +28,9 @@ namespace cppu_threadpool { JobQueue::JobQueue() : m_nToDo( 0 ), - m_bSuspended( false ) + m_bSuspended( false ), + m_DisposedCallerAdmin( DisposedCallerAdmin::getInstance() ) { - m_DisposedCallerAdmin = DisposedCallerAdmin::getInstance(); } void JobQueue::add( void *pThreadSpecificData, RequestFun * doRequest ) diff --git a/cppu/source/threadpool/threadpool.cxx b/cppu/source/threadpool/threadpool.cxx index 42a4ff0ff8a5..92252ccb1ea4 100644 --- a/cppu/source/threadpool/threadpool.cxx +++ b/cppu/source/threadpool/threadpool.cxx @@ -101,9 +101,9 @@ namespace cppu_threadpool - ThreadPool::ThreadPool() + ThreadPool::ThreadPool() : + m_DisposedCallerAdmin( DisposedCallerAdmin::getInstance() ) { - m_DisposedCallerAdmin = DisposedCallerAdmin::getInstance(); } ThreadPool::~ThreadPool() |