diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-12-21 16:34:36 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-21 18:42:48 +0100 |
commit | b6c8497cdf070c8404a1f3784c4ee6df191bd546 (patch) | |
tree | 029a5ce39adbad2c9eb1213e57d38fecdd9e6041 /src/declarative/qml/qdeclarativescript.cpp | |
parent | 8249c72213bc7d212c05aa086b3145a5742706a3 (diff) |
Detect and optimize qsTr() and qsTrId() bindings
As these two are frequently used with constants, we can detect them in
the compiler, and run the appropriate C++ functions directly in the VME.
This saves pointlessly creating and running bindings.
Change-Id: I148a150400c13fda7955949453405202f18b1a6b
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativescript.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativescript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativescript.cpp b/src/declarative/qml/qdeclarativescript.cpp index 9d18cb3889..7d0b543504 100644 --- a/src/declarative/qml/qdeclarativescript.cpp +++ b/src/declarative/qml/qdeclarativescript.cpp @@ -252,7 +252,7 @@ bool QDeclarativeScript::Property::isEmpty() const } QDeclarativeScript::Value::Value() -: type(Unknown), object(0), bindingReference(0), signalExpressionContextStack(0), nextValue(0) +: type(Unknown), object(0), bindingReference(0), nextValue(0) { } |