Don't needlessly create alias property names in the meta-object
authorKent Hansen <kent.hansen@nokia.com>
Mon, 5 Mar 2012 11:23:19 +0000 (12:23 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Mar 2012 11:10:38 +0000 (12:10 +0100)
commit5d8b07bd6ad6550ce6464973c5132580589a96a2
treedee1c5454a0621646b0ea0da4bbf4ef5799b6216
parentaed15e776277410fb43ce2d2a9a8924359a58653
Don't needlessly create alias property names in the meta-object

When aliases should not be resolved, there is no need to create the
alias name StringRef, since it would occupy space in the meta-data
even though the string was never actually initialized.

Similarly, when aliases should be resolved, it's enough to create the
StringRef once.

Change-Id: I44dfe665fe8d7bd5754bc939ff62ad75efe19d5b
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/qml/qml/ftw/qfastmetabuilder.cpp
src/qml/qml/qqmlcompiler.cpp