Commit b137172a authored by mrobinson@webkit.org's avatar mrobinson@webkit.org

Try to fix the Qt Windows build

* xml/parser/XMLDocumentParserQt.cpp:
(WebCore::decodeNamedEntity): Use a reinterpret_cast to const QChar* like StringQt.cpp.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent af9d57b5
2013-01-24 Martin Robinson <mrobinson@igalia.com>
Try to fix the Qt Windows build
* xml/parser/XMLDocumentParserQt.cpp:
(WebCore::decodeNamedEntity): Use a reinterpret_cast to const QChar* like StringQt.cpp.
2013-01-24 Andrey Adaikin <aandrey@chromium.org>
Web Inspector: [Canvas] REGRESSION: stack traces in the replay log are gone
......@@ -71,7 +71,7 @@ static QString decodeNamedEntity(const QString& entityName)
{
UChar utf16DecodedEntity[4];
size_t numberOfCodePoints = decodeNamedEntityToUCharArray(entityName.toUtf8().constData(), utf16DecodedEntity);
return QString::fromUtf16(utf16DecodedEntity, numberOfCodePoints);
return QString(reinterpret_cast<const QChar*>(utf16DecodedEntity), numberOfCodePoints);
}
QString EntityResolver::resolveUndeclaredEntity(const QString &name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment