diff options
Diffstat (limited to 'converters.h')
-rw-r--r-- | converters.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converters.h b/converters.h index 9b78eb37..0d7f734e 100644 --- a/converters.h +++ b/converters.h @@ -46,7 +46,7 @@ namespace QMatrixClient inline QJsonValue toJson(const QByteArray& bytes) { - return QJsonValue(static_cast<const char*>(bytes)); + return QJsonValue(bytes.constData()); } template <typename T> |