diff options
Diffstat (limited to 'src/corelib/thread/qfutureinterface.h')
| -rw-r--r-- | src/corelib/thread/qfutureinterface.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/thread/qfutureinterface.h b/src/corelib/thread/qfutureinterface.h index 8467047809c..2432503cf79 100644 --- a/src/corelib/thread/qfutureinterface.h +++ b/src/corelib/thread/qfutureinterface.h @@ -192,7 +192,7 @@ private: #endif protected: - void setContinuation(std::function<void()> func); + void setContinuation(std::function<void(const QFutureInterfaceBase &)> func); void runContinuation() const; void setLaunchAsync(bool value); @@ -215,6 +215,7 @@ public: { refT(); } + QFutureInterface(const QFutureInterfaceBase &dd) : QFutureInterfaceBase(dd) { refT(); } ~QFutureInterface() { if (!derefT()) @@ -424,6 +425,8 @@ public: : QFutureInterfaceBase(initialState) { } + QFutureInterface(const QFutureInterfaceBase &dd) : QFutureInterfaceBase(dd) { } + static QFutureInterface<void> canceledResult() { return QFutureInterface(State(Started | Finished | Canceled)); } |
