qml: Avoid heap allocations due to QString::fromLatin1()
authorSérgio Martins <sergio.martins@kdab.com>
Wed, 12 Aug 2015 12:17:58 +0000 (13:17 +0100)
committerSérgio Martins <sergio.martins@kdab.com>
Thu, 13 Aug 2015 16:11:48 +0000 (16:11 +0000)
commitb5572010798198de7b58ca3b905cb2691a316d1a
treeb15505115ab0f68fcb6defd338c28a673af8ad65
parentfbdc01f141a4ec4e6fc78ea69d86ff7aa128bf72
qml: Avoid heap allocations due to QString::fromLatin1()

By using QStringLiteral when the argument is a literal.

Change-Id: Ib25042d10f3d9d0aca81af74cde0107aba4f9432
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
src/qml/compiler/qv4ssa.cpp
src/qml/jsruntime/qv4errorobject.cpp
src/qml/jsruntime/qv4numberobject.cpp
src/qml/jsruntime/qv4objectproto.cpp
src/qml/jsruntime/qv4qobjectwrapper.cpp
src/qml/jsruntime/qv4variantobject.cpp
src/qml/qml/qqmldirparser.cpp
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmlglobal.cpp
src/qml/qml/v8/qqmlbuiltinfunctions.cpp
src/qml/types/qqmllistmodel.cpp