summaryrefslogtreecommitdiffstats
path: root/client/main.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-09 14:00:26 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-09 14:00:26 +0200
commit3062983d075761c457249b8c3c1248aa0d45e46a (patch)
tree9ff6d0956d3ad77a53f465eb7897e500edad2b8a /client/main.cpp
parentf10d223559b16c576093eea080dc0d5638ab3323 (diff)
downloadsink-3062983d075761c457249b8c3c1248aa0d45e46a.tar.gz
sink-3062983d075761c457249b8c3c1248aa0d45e46a.zip
Use QByteArray instead of QString
All identifiers should be latin1 and we make this explicit by using QByteArray. QString is reserved for strings that can be UTF-8 or alike.
Diffstat (limited to 'client/main.cpp')
-rw-r--r--client/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/main.cpp b/client/main.cpp
index 61c1c1a..b4cb081 100644
--- a/client/main.cpp
+++ b/client/main.cpp
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
41 } 41 }
42 42
43 for (const QString &resource: resources) { 43 for (const QString &resource: resources) {
44 Akonadi2::ResourceAccess *resAccess = new Akonadi2::ResourceAccess(resource); 44 Akonadi2::ResourceAccess *resAccess = new Akonadi2::ResourceAccess(resource.toLatin1());
45 QObject::connect(&app, &QCoreApplication::aboutToQuit, 45 QObject::connect(&app, &QCoreApplication::aboutToQuit,
46 resAccess, &Akonadi2::ResourceAccess::close); 46 resAccess, &Akonadi2::ResourceAccess::close);
47 resAccess->sendCommand(Akonadi2::Commands::SynchronizeCommand); 47 resAccess->sendCommand(Akonadi2::Commands::SynchronizeCommand);