diff options
author | MÃ¥rten Nordheim <marten.nordheim@qt.io> | 2020-10-06 16:16:13 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-10-09 09:03:17 +0200 |
commit | 352c1a3d4b0536dd04440512cd2502c3a55e8c0c (patch) | |
tree | 88298b66a6503bb2a0087ad41b355a394fcf5c0e | |
parent | d3233d5a1358d1c89cac53c6fcc96bd5a2e25415 (diff) |
Update QStringConverter usage
Following fa8d021fa6fcb040fb702b6ffd2deee52a3b748a
Change-Id: I89c0231655ec853cef9465e5a88a92d7e0085d30
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r-- | src/qml/qml/qqmlxmlhttprequest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp index bc2007b01a..a1f9377d79 100644 --- a/src/qml/qml/qqmlxmlhttprequest.cpp +++ b/src/qml/qml/qqmlxmlhttprequest.cpp @@ -1546,13 +1546,13 @@ QStringDecoder QQmlXMLHttpRequest::findTextDecoder() const } if (!decoder.isValid() && m_mime == "text/html") { - auto encoding = QStringConverter::encodingForHtml(m_responseEntityBody.constData(), m_responseEntityBody.size()); + auto encoding = QStringConverter::encodingForHtml(m_responseEntityBody); if (encoding) decoder = QStringDecoder(*encoding); } if (!decoder.isValid()) { - auto encoding = QStringConverter::encodingForData(m_responseEntityBody.constData(), m_responseEntityBody.size()); + auto encoding = QStringConverter::encodingForData(m_responseEntityBody); if (encoding) decoder = QStringDecoder(*encoding); } |