Build with QT_NO_CAST_FROM_BYTEARRAY

Change-Id: Ibb79e372a3adf90c9f982f50ab711066063eff4a
Reviewed-by: David Faure <faure@kde.org>
bb10
Stephen Kelly 2012-02-02 17:13:54 +01:00 committed by Qt by Nokia
parent 920795e99a
commit 71002f830b
1 changed files with 2 additions and 2 deletions

View File

@ -212,9 +212,9 @@ public:
#if QT_DEPRECATED_SINCE(5,0)
QT_DEPRECATED void setEncodedUrl(const QByteArray &url, ParsingMode mode = TolerantMode)
{ setUrl(QString::fromUtf8(url), mode); }
{ setUrl(QString::fromUtf8(url.constData(), url.size()), mode); }
QT_DEPRECATED static QUrl fromEncoded(const QByteArray &url, ParsingMode mode = TolerantMode)
{ return QUrl(QString::fromUtf8(url), mode); }
{ return QUrl(QString::fromUtf8(url.constData(), url.size()), mode); }
#endif
private: