diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-09 14:00:26 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-09 14:00:26 +0200 |
commit | 3062983d075761c457249b8c3c1248aa0d45e46a (patch) | |
tree | 9ff6d0956d3ad77a53f465eb7897e500edad2b8a /tests/domainadaptortest.cpp | |
parent | f10d223559b16c576093eea080dc0d5638ab3323 (diff) | |
download | sink-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 'tests/domainadaptortest.cpp')
-rw-r--r-- | tests/domainadaptortest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/domainadaptortest.cpp b/tests/domainadaptortest.cpp index cedbf94..e45a9a3 100644 --- a/tests/domainadaptortest.cpp +++ b/tests/domainadaptortest.cpp | |||
@@ -21,7 +21,7 @@ public: | |||
21 | { | 21 | { |
22 | } | 22 | } |
23 | 23 | ||
24 | void setProperty(const QString &key, const QVariant &value) | 24 | void setProperty(const QByteArray &key, const QVariant &value) |
25 | { | 25 | { |
26 | if (mResourceMapper->mWriteAccessors.contains(key)) { | 26 | if (mResourceMapper->mWriteAccessors.contains(key)) { |
27 | // mResourceMapper.setProperty(key, value, mResourceBuffer); | 27 | // mResourceMapper.setProperty(key, value, mResourceBuffer); |
@@ -30,7 +30,7 @@ public: | |||
30 | } | 30 | } |
31 | } | 31 | } |
32 | 32 | ||
33 | virtual QVariant getProperty(const QString &key) const | 33 | virtual QVariant getProperty(const QByteArray &key) const |
34 | { | 34 | { |
35 | if (mResourceBuffer && mResourceMapper->mReadAccessors.contains(key)) { | 35 | if (mResourceBuffer && mResourceMapper->mReadAccessors.contains(key)) { |
36 | return mResourceMapper->getProperty(key, mResourceBuffer); | 36 | return mResourceMapper->getProperty(key, mResourceBuffer); |