diff options
-rw-r--r-- | src/qml/qml/ftw/qhashedstring.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/qml/ftw/qhashedstring.cpp b/src/qml/qml/ftw/qhashedstring.cpp index 0af68e89f6..7e6ea59ef9 100644 --- a/src/qml/qml/ftw/qhashedstring.cpp +++ b/src/qml/qml/ftw/qhashedstring.cpp @@ -48,8 +48,7 @@ inline quint32 stringHash(const QChar* data, int length) inline quint32 stringHash(const char *data, int length) { - QString s = QString::fromLatin1(data, length); - return QV4::String::createHashValue(s.constData(), s.length()); + return QV4::String::createHashValue(data, length); } void QHashedString::computeHash() const |