summaryrefslogtreecommitdiffstats
path: root/async/autotests/asynctest.cpp
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2014-12-11 12:19:57 +0100
committerDan Vrátil <dvratil@redhat.com>2014-12-11 12:19:57 +0100
commit77d10f3633eb2210b465397fd3a29c77846c00a6 (patch)
tree23723ff5d166bafc77d71c8c069cd20e4b190aa1 /async/autotests/asynctest.cpp
parent67d47d893bc582fbd06da8bd93a1c416fa314ca6 (diff)
downloadsink-77d10f3633eb2210b465397fd3a29c77846c00a6.tar.gz
sink-77d10f3633eb2210b465397fd3a29c77846c00a6.zip
Async: simplify the template magic around In... being empty or void
Diffstat (limited to 'async/autotests/asynctest.cpp')
-rw-r--r--async/autotests/asynctest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/async/autotests/asynctest.cpp b/async/autotests/asynctest.cpp
index f2a70a4..786ff3c 100644
--- a/async/autotests/asynctest.cpp
+++ b/async/autotests/asynctest.cpp
@@ -80,8 +80,9 @@ void AsyncTest::testAsyncPromises()
80 [&]() { 80 [&]() {
81 future.setValue(42); 81 future.setValue(42);
82 future.setFinished(); 82 future.setFinished();
83 timer->deleteLater();
84 }); 83 });
84 QObject::connect(timer, &QTimer::timeout,
85 timer, &QObject::deleteLater);
85 timer->setSingleShot(true); 86 timer->setSingleShot(true);
86 timer->start(200); 87 timer->start(200);
87 return future; 88 return future;