From 0d74afe02af65a77e57fd2a037c79f9650d9213e Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 7 Oct 2014 13:17:37 +0200 Subject: [PATCH] Fixed return type to void as discussed: https://dev.vatsim-germany.org/issues/325#note-26 --- src/blackmisc/worker.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blackmisc/worker.h b/src/blackmisc/worker.h index 7fadf8495..aa81cef14 100644 --- a/src/blackmisc/worker.h +++ b/src/blackmisc/worker.h @@ -98,7 +98,7 @@ namespace BlackMisc //! Executes some code (in the caller's thread) if the task has finished. //! \threadsafe template - bool doIfFinished(F functor) const + void doIfFinished(F functor) const { QMutexLocker lock(&m_finishedMutex); if (m_finished) { functor(); } @@ -107,7 +107,7 @@ namespace BlackMisc //! Executes some code (in the caller's thread) if the task has not finished. //! \threadsafe template - bool doIfNotFinished(F functor) const + void doIfNotFinished(F functor) const { QMutexLocker lock(&m_finishedMutex); if (! m_finished) { functor(); } @@ -116,7 +116,7 @@ namespace BlackMisc //! Executes some code (in the caller's thread) if the task has not finished and some different code if it has finished. //! \threadsafe template - bool doIfFinishedElse(F1 ifFunctor, F2 elseFunctor) const + void doIfFinishedElse(F1 ifFunctor, F2 elseFunctor) const { QMutexLocker lock(&m_finishedMutex); if (m_finished) { ifFunctor(); } else { elseFunctor(); }