aboutsummaryrefslogtreecommitdiff
path: root/converters.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-25 14:46:18 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-25 14:46:18 +0900
commitcbfe29b3435fbe47fee268facbe6a82000fce0ad (patch)
treee922f1a1505ff1d0a3cdaca56ed5fd151c3aa410 /converters.h
parentb1dd0e7ea87842fb5ff9deb14beb3474136b06f3 (diff)
parenta4a1129385731c3999a6d5986a24fc069938245c (diff)
downloadlibquotient-cbfe29b3435fbe47fee268facbe6a82000fce0ad.tar.gz
libquotient-cbfe29b3435fbe47fee268facbe6a82000fce0ad.zip
Merge branch 'master' into kitsune-gtad
Diffstat (limited to 'converters.h')
-rw-r--r--converters.h2
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>