summaryrefslogtreecommitdiffstats
path: root/common/clientapi.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 /common/clientapi.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 'common/clientapi.cpp')
-rw-r--r--common/clientapi.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp
index 6f0b421..0281b79 100644
--- a/common/clientapi.cpp
+++ b/common/clientapi.cpp
@@ -18,20 +18,20 @@ namespace Domain
18{ 18{
19 19
20template<> 20template<>
21QString getTypeName<Event>() 21QByteArray getTypeName<Event>()
22{ 22{
23 return "event"; 23 return "event";
24} 24}
25 25
26template<> 26template<>
27QString getTypeName<Todo>() 27QByteArray getTypeName<Todo>()
28{ 28{
29 return "todo"; 29 return "todo";
30} 30}
31 31
32} // namespace Domain 32} // namespace Domain
33 33
34void Store::shutdown(const QString &identifier) 34void Store::shutdown(const QByteArray &identifier)
35{ 35{
36 Akonadi2::ResourceAccess resourceAccess(identifier); 36 Akonadi2::ResourceAccess resourceAccess(identifier);
37 //FIXME this starts the resource, just to shut it down again if it's not running in the first place. 37 //FIXME this starts the resource, just to shut it down again if it's not running in the first place.