diff options
author | Dan Vrátil <dvratil@redhat.com> | 2015-04-06 19:03:24 +0200 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2015-04-06 19:03:24 +0200 |
commit | e069326a13905e3d3db9db58fbe69afa908063d4 (patch) | |
tree | 40199b555325ae7f4a825e0743983870671493b5 /async/src | |
parent | c4fc276f4af964ce586e009ea3d0c728bb660331 (diff) | |
download | sink-e069326a13905e3d3db9db58fbe69afa908063d4.tar.gz sink-e069326a13905e3d3db9db58fbe69afa908063d4.zip |
Async: const'ify
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; |