summaryrefslogtreecommitdiffstats
path: root/common/clientapi.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-30 20:45:59 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-30 20:45:59 +0100
commit377c86144221ffc5b49bdaa9b8dcc3507fe4a50f (patch)
treeb8025c51cf2c48d13106dbf9bb6192b080624ebd /common/clientapi.cpp
parent412563b7ff18684f9786f4e40b1a4d538f2d5233 (diff)
downloadsink-377c86144221ffc5b49bdaa9b8dcc3507fe4a50f.tar.gz
sink-377c86144221ffc5b49bdaa9b8dcc3507fe4a50f.zip
Fixed some warnings
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r--common/clientapi.cpp20
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
42namespace 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
60namespace Akonadi2 40namespace Akonadi2
61{ 41{
62 42