summaryrefslogtreecommitdiffstats
path: root/src/knx/dpt/qknxutf8string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knx/dpt/qknxutf8string.cpp')
-rw-r--r--src/knx/dpt/qknxutf8string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/knx/dpt/qknxutf8string.cpp b/src/knx/dpt/qknxutf8string.cpp
index bdeadc6..e4f20d7 100644
--- a/src/knx/dpt/qknxutf8string.cpp
+++ b/src/knx/dpt/qknxutf8string.cpp
@@ -139,7 +139,7 @@ bool QKnxUtf8String::setString(const char *string, int size)
if (!toUtf16.isValid())
return false;
- auto text = toUtf16(string, size);
+ auto text = toUtf16(QByteArrayView{ string, size });
if (toUtf16.hasError())
return false;
return setString(text);