Reserve enough space in the QDeclarativePropertyCache hash
authorAaron Kennedy <aaron.kennedy@nokia.com>
Wed, 21 Dec 2011 18:44:26 +0000 (18:44 +0000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 22 Dec 2011 11:06:03 +0000 (12:06 +0100)
commit5c22d958fb7cd5e9729518a6fdd0a9a18a9a7481
tree84de5cd638d6abc06e27952e289f1fd03b97cc05
parent38a6e710199c13b8b7c9b3a1be67a3088f8b5570
Reserve enough space in the QDeclarativePropertyCache hash

It was too easy for callers of copy() to pass the wrong reserve size,
so a new copyAndAppend() method has been added to reduce error.

Change-Id: If2f13e2e0733e5d87c527934dc5a6c8d0c8df572
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/qml/qdeclarativecompiler.cpp
src/declarative/qml/qdeclarativeengine.cpp
src/declarative/qml/qdeclarativepropertycache.cpp
src/declarative/qml/qdeclarativepropertycache_p.h