diff options
| author | xiphon <xiphon@protonmail.com> | 2019-08-28 16:21:53 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-09-02 20:01:28 +0000 |
| commit | 3a33ddeecdea52bbf35549ffb0d4904eba1ebff6 (patch) | |
| tree | d65f14940c1c78251dfeeb6f7c7d00efb30fea9d /src/qt/FutureScheduler.h | |
| parent | 346e942e93e556a44b854061d37e64324a6d5a38 (diff) | |
| download | monzero-gui-3a33ddeecdea52bbf35549ffb0d4904eba1ebff6.tar.gz monzero-gui-3a33ddeecdea52bbf35549ffb0d4904eba1ebff6.tar.xz monzero-gui-3a33ddeecdea52bbf35549ffb0d4904eba1ebff6.zip | |
fix invalid include paths, compilation warnings, update README.md
Diffstat (limited to 'src/qt/FutureScheduler.h')
| -rw-r--r-- | src/qt/FutureScheduler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/FutureScheduler.h b/src/qt/FutureScheduler.h index 28c2dfdf..e76021c3 100644 --- a/src/qt/FutureScheduler.h +++ b/src/qt/FutureScheduler.h @@ -20,9 +20,9 @@ public: ~FutureScheduler(); void shutdownWaitForFinished() noexcept; - + QPair<bool, QFuture<void>> run(std::function<void()> function) noexcept; - QPair<bool, QFuture<QJSValueList>> run(std::function<QJSValueList() noexcept> function, const QJSValue &callback) noexcept; + QPair<bool, QFuture<QJSValueList>> run(std::function<QJSValueList() noexcept> function, const QJSValue &callback); private: bool add() noexcept; @@ -38,7 +38,7 @@ private: watcher->moveToThread(schedulerThread); } watcher->setParent(this); - + return watcher; } |
