summaryrefslogtreecommitdiffstats
path: root/examples/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/client/main.cpp')
-rw-r--r--examples/client/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/client/main.cpp b/examples/client/main.cpp
index e0d9078..59ff9d9 100644
--- a/examples/client/main.cpp
+++ b/examples/client/main.cpp
@@ -29,6 +29,8 @@
29#include "common/domain/folder.h" 29#include "common/domain/folder.h"
30#include "common/resourceconfig.h" 30#include "common/resourceconfig.h"
31#include "common/log.h" 31#include "common/log.h"
32#include "common/storage.h"
33#include "common/definitions.h"
32#include "console.h" 34#include "console.h"
33 35
34#include <QWidget> 36#include <QWidget>
@@ -153,8 +155,7 @@ int main(int argc, char *argv[])
153 if (cliOptions.isSet("clear")) { 155 if (cliOptions.isSet("clear")) {
154 qDebug() << "Clearing"; 156 qDebug() << "Clearing";
155 for (const auto &resource : resources) { 157 for (const auto &resource : resources) {
156 Akonadi2::Storage store(Akonadi2::Store::storageLocation(), resource, Akonadi2::Storage::ReadWrite); 158 Akonadi2::Store::removeFromDisk(resource.toLatin1());
157 store.removeFromDisk();
158 } 159 }
159 return 0; 160 return 0;
160 } 161 }