diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-20 16:27:08 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-20 16:27:08 +0100 |
commit | 31a1834a3b596a4cd2fbef8cf35adb92780bf886 (patch) | |
tree | fa72ca1d0fd7d23a0d7d08d9185facab1c44094f | |
parent | ad1c7c8695a57bf8a90955f7840f075e196cbba9 (diff) | |
download | sink-31a1834a3b596a4cd2fbef8cf35adb92780bf886.tar.gz sink-31a1834a3b596a4cd2fbef8cf35adb92780bf886.zip |
fixed build
-rw-r--r-- | async/src/future.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/async/src/future.h b/async/src/future.h index 098f6e8..75669ba 100644 --- a/async/src/future.h +++ b/async/src/future.h | |||
@@ -114,12 +114,14 @@ protected: | |||
114 | class Private : public QSharedData | 114 | class Private : public QSharedData |
115 | { | 115 | { |
116 | public: | 116 | public: |
117 | Private() : QSharedData(), finished(false) {} | 117 | Private() : QSharedData(), finished(false), errorCode(0) {} |
118 | typename std::conditional<std::is_void<T>::value, int /* dummy */, T>::type | 118 | typename std::conditional<std::is_void<T>::value, int /* dummy */, T>::type |
119 | value; | 119 | value; |
120 | 120 | ||
121 | QVector<QPointer<FutureWatcher<T>>> watchers; | 121 | QVector<QPointer<FutureWatcher<T>>> watchers; |
122 | bool finished; | 122 | bool finished; |
123 | int errorCode; | ||
124 | QString errorMessage; | ||
123 | }; | 125 | }; |
124 | 126 | ||
125 | QExplicitlySharedDataPointer<Private> d; | 127 | QExplicitlySharedDataPointer<Private> d; |