From 3062983d075761c457249b8c3c1248aa0d45e46a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 9 Apr 2015 14:00:26 +0200 Subject: 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. --- tests/domainadaptortest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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: { } - void setProperty(const QString &key, const QVariant &value) + void setProperty(const QByteArray &key, const QVariant &value) { if (mResourceMapper->mWriteAccessors.contains(key)) { // mResourceMapper.setProperty(key, value, mResourceBuffer); @@ -30,7 +30,7 @@ public: } } - virtual QVariant getProperty(const QString &key) const + virtual QVariant getProperty(const QByteArray &key) const { if (mResourceBuffer && mResourceMapper->mReadAccessors.contains(key)) { return mResourceMapper->getProperty(key, mResourceBuffer); -- cgit v1.2.3