summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--async/src/future.h4
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;