diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-20 09:47:10 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 09:47:10 +1100 |
commit | 1c89042016c739815b2d70bcbef4673eef6b63e0 (patch) | |
tree | f7c8e96e744222857c613e5fd14720d2695613c3 /source/core/StarWorkerPool.cpp | |
parent | 30e1871d3f44629e00a1f66d8164e3e62c7f889f (diff) | |
parent | 7c4fbad2ba7d79580a9ebbf9fde1de117be4d08e (diff) |
Merge pull request #19 from kblaschke/fix-compiler-warnings
Fixed a huge amount of Clang warnings
Diffstat (limited to 'source/core/StarWorkerPool.cpp')
-rw-r--r-- | source/core/StarWorkerPool.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/core/StarWorkerPool.cpp b/source/core/StarWorkerPool.cpp index 2a7003d..f618682 100644 --- a/source/core/StarWorkerPool.cpp +++ b/source/core/StarWorkerPool.cpp @@ -39,11 +39,11 @@ void WorkerPoolHandle::finish() const { WorkerPoolHandle::Impl::Impl() : done(false) {} -WorkerPoolHandle::WorkerPoolHandle(shared_ptr<Impl> impl) : m_impl(move(impl)) {} +WorkerPoolHandle::WorkerPoolHandle(shared_ptr<Impl> impl) : m_impl(std::move(impl)) {} -WorkerPool::WorkerPool(String name) : m_name(move(name)) {} +WorkerPool::WorkerPool(String name) : m_name(std::move(name)) {} -WorkerPool::WorkerPool(String name, unsigned threadCount) : WorkerPool(move(name)) { +WorkerPool::WorkerPool(String name, unsigned threadCount) : WorkerPool(std::move(name)) { start(threadCount); } @@ -159,7 +159,7 @@ void WorkerPool::WorkerThread::run() { void WorkerPool::queueWork(function<void()> work) { MutexLocker workLock(m_workMutex); - m_pendingWork.append(move(work)); + m_pendingWork.append(std::move(work)); m_workCondition.signal(); } |