From 8d5f4e8485db0bfc0745a9852bac9eceab3b769f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Fri, 10 Apr 2015 19:09:47 +0200 Subject: Async: use baseclass instead of this-> to refer to parent class member --- async/src/async.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'async/src') diff --git a/async/src/async.h b/async/src/async.h index 2430a27..2243046 100644 --- a/async/src/async.h +++ b/async/src/async.h @@ -585,7 +585,7 @@ ExecutionPtr Executor::exec(const ExecutorBasePtr &self) // chainup execution->prevExecution = mPrev ? mPrev->exec(mPrev) : ExecutionPtr(); - execution->resultBase = this->createFuture(execution); + execution->resultBase = ExecutorBase::createFuture(execution); auto fw = new Async::FutureWatcher(); QObject::connect(fw, &Async::FutureWatcher::futureReady, [fw, execution, this]() { @@ -678,7 +678,7 @@ void ThenExecutor::run(const ExecutionPtr &execution) assert(prevFuture->isFinished()); } - this->mFunc(prevFuture ? prevFuture->value() : In() ..., *execution->result()); + ThenExecutor::mFunc(prevFuture ? prevFuture->value() : In() ..., *execution->result()); } template @@ -703,7 +703,7 @@ void EachExecutor::run(const ExecutionPtr &execution) for (auto arg : prevFuture->value()) { Async::Future future; - this->mFunc(arg, future); + EachExecutor::mFunc(arg, future); auto fw = new Async::FutureWatcher(); mFutureWatchers.append(fw); QObject::connect(fw, &Async::FutureWatcher::futureReady, @@ -756,7 +756,7 @@ void SyncThenExecutor::run(const ExecutionPtr &execution, std::fals : nullptr; (void) prevFuture; // silence 'set but not used' warning Async::Future *future = execution->result(); - future->setValue(this->mFunc(prevFuture ? prevFuture->value() : In() ...)); + future->setValue(SyncThenExecutor::mFunc(prevFuture ? prevFuture->value() : In() ...)); } template @@ -767,7 +767,7 @@ void SyncThenExecutor::run(const ExecutionPtr &execution, std::true ? execution->prevExecution->result::type>() : nullptr; (void) prevFuture; // silence 'set but not used' warning - this->mFunc(prevFuture ? prevFuture->value() : In() ...); + SyncThenExecutor::mFunc(prevFuture ? prevFuture->value() : In() ...); } template @@ -799,13 +799,13 @@ void SyncEachExecutor::run(const ExecutionPtr &execution) template void SyncEachExecutor::run(Async::Future *out, const typename PrevOut::value_type &arg, std::false_type) { - out->setValue(out->value() + this->mFunc(arg)); + out->setValue(out->value() + SyncEachExecutor::mFunc(arg)); } template void SyncEachExecutor::run(Async::Future * /* unused */, const typename PrevOut::value_type &arg, std::true_type) { - this->mFunc(arg); + SyncEachExecutor::mFunc(arg); } template -- cgit v1.2.3