QStringRef has toInt(), so no need to create a new QString
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 4 Oct 2013 04:54:18 +0000 (21:54 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 7 Oct 2013 06:53:23 +0000 (08:53 +0200)
commitfb1306e33e448eb4437ea4ab311e3ba0b493206c
tree2544db9e36d5a4504b463d5858be4df759d68b55
parentd108aeacac4835758e3e5f605b4845958ac82825
QStringRef has toInt(), so no need to create a new QString

Saves up on memory allocations.

Change-Id: I0f7c82521b0b10085861fc62fed9b9d591169b5a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qqmlcodegenerator.cpp
src/qml/qml/qqmlscript.cpp