From e069326a13905e3d3db9db58fbe69afa908063d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Mon, 6 Apr 2015 19:03:24 +0200 Subject: Async: const'ify --- async/src/async.h | 2 +- async/src/future.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'async') diff --git a/async/src/async.h b/async/src/async.h index adc0b69..2430a27 100644 --- a/async/src/async.h +++ b/async/src/async.h @@ -101,7 +101,7 @@ struct Execution { void setFinished(); template - Async::Future* result() + Async::Future* result() const { return static_cast*>(resultBase); } diff --git a/async/src/future.h b/async/src/future.h index 32c1015..bce00bb 100644 --- a/async/src/future.h +++ b/async/src/future.h @@ -98,7 +98,7 @@ class FutureGeneric : public FutureBase friend class FutureWatcher; public: - void waitForFinished() + void waitForFinished() const { if (isFinished()) { return; -- cgit v1.2.3