diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-30 20:45:59 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-30 20:45:59 +0100 |
commit | 377c86144221ffc5b49bdaa9b8dcc3507fe4a50f (patch) | |
tree | b8025c51cf2c48d13106dbf9bb6192b080624ebd /common/clientapi.cpp | |
parent | 412563b7ff18684f9786f4e40b1a4d538f2d5233 (diff) | |
download | sink-377c86144221ffc5b49bdaa9b8dcc3507fe4a50f.tar.gz sink-377c86144221ffc5b49bdaa9b8dcc3507fe4a50f.zip |
Fixed some warnings
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r-- | common/clientapi.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp index 29b7e68..b732205 100644 --- a/common/clientapi.cpp +++ b/common/clientapi.cpp | |||
@@ -37,26 +37,6 @@ | |||
37 | #include "modelresult.h" | 37 | #include "modelresult.h" |
38 | #include "log.h" | 38 | #include "log.h" |
39 | 39 | ||
40 | #define ASYNCINTHREAD | ||
41 | |||
42 | namespace async | ||
43 | { | ||
44 | static void run(const std::function<void()> &runner) { | ||
45 | auto timer = new QTimer(); | ||
46 | timer->setSingleShot(true); | ||
47 | QObject::connect(timer, &QTimer::timeout, [runner, timer]() { | ||
48 | delete timer; | ||
49 | #ifndef ASYNCINTHREAD | ||
50 | runner(); | ||
51 | #else | ||
52 | QtConcurrent::run(runner); | ||
53 | #endif | ||
54 | }); | ||
55 | timer->start(0); | ||
56 | }; | ||
57 | } // namespace async | ||
58 | |||
59 | |||
60 | namespace Akonadi2 | 40 | namespace Akonadi2 |
61 | { | 41 | { |
62 | 42 | ||