summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlxmlhttprequest.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-12 03:13:08 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-12 03:13:08 (GMT)
commit55e4d0591a2b18e08519144a416d1fea9a625cd8 (patch)
tree3c8d5845b1d63b1882aeb27d0c28e70e9817b562 /src/declarative/qml/qmlxmlhttprequest.cpp
parent6be94173f3f209d785e5787df8440d20ff0f2709 (diff)
downloadQt-55e4d0591a2b18e08519144a416d1fea9a625cd8.zip
Qt-55e4d0591a2b18e08519144a416d1fea9a625cd8.tar.gz
Qt-55e4d0591a2b18e08519144a416d1fea9a625cd8.tar.bz2
Use utf8 instead of latin1 where appropriate
Diffstat (limited to 'src/declarative/qml/qmlxmlhttprequest.cpp')
-rw-r--r--src/declarative/qml/qmlxmlhttprequest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlxmlhttprequest.cpp b/src/declarative/qml/qmlxmlhttprequest.cpp
index 0bc927c..5117a00 100644
--- a/src/declarative/qml/qmlxmlhttprequest.cpp
+++ b/src/declarative/qml/qmlxmlhttprequest.cpp
@@ -1105,7 +1105,7 @@ void QmlXMLHttpRequest::downloadProgress(qint64 bytes)
m_status =
m_network->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
m_statusText =
- QLatin1String(m_network->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray());
+ QString::fromUtf8(m_network->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray());
// ### We assume if this is called the headers are now available
if (m_state < HeadersReceived) {
@@ -1127,7 +1127,7 @@ void QmlXMLHttpRequest::error(QNetworkReply::NetworkError error)
m_status =
m_network->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
m_statusText =
- QLatin1String(m_network->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray());
+ QString::fromUtf8(m_network->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray());
m_responseEntityBody = QByteArray();
m_errorFlag = true;
@@ -1146,7 +1146,7 @@ void QmlXMLHttpRequest::finished()
m_status =
m_network->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
m_statusText =
- QLatin1String(m_network->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray());
+ QString::fromUtf8(m_network->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray());
if (m_state < HeadersReceived) {
m_state = HeadersReceived;