diff options
Diffstat (limited to 'async/src')
-rw-r--r-- | async/src/async.h | 2 | ||||
-rw-r--r-- | async/src/future.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 { | |||
101 | void setFinished(); | 101 | void setFinished(); |
102 | 102 | ||
103 | template<typename T> | 103 | template<typename T> |
104 | Async::Future<T>* result() | 104 | Async::Future<T>* result() const |
105 | { | 105 | { |
106 | return static_cast<Async::Future<T>*>(resultBase); | 106 | return static_cast<Async::Future<T>*>(resultBase); |
107 | } | 107 | } |
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 | |||
98 | friend class FutureWatcher<T>; | 98 | friend class FutureWatcher<T>; |
99 | 99 | ||
100 | public: | 100 | public: |
101 | void waitForFinished() | 101 | void waitForFinished() const |
102 | { | 102 | { |
103 | if (isFinished()) { | 103 | if (isFinished()) { |
104 | return; | 104 | return; |