aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2012-05-23 11:38:46 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-24 17:50:07 +0200
commit6ff8aa4b83e801acadd45cc32759ea77cf4532c8 (patch)
tree564c6585f8ce46321709069708be7d77f17c3779 /src/qml/qml/qqmlengine.cpp
parent72ac68162e4ab94bb2b62e047a726c119f77df13 (diff)
Reduce size of QQmlAbstractBinding
The doubly-linked list is unnecessary. Most bindings are created at startup, and removed only when the object is destroyed. In these cases the double-link buys nothing other than wasted space. Even when the bindings are removed earlier, searching the list is not that slow. Change-Id: I22e1376b78ba712dafd171c7447fbc6ed212b891 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r--src/qml/qml/qqmlengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index 4a3e30793c..08dd845dd6 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -1293,7 +1293,7 @@ void QQmlData::destroyed(QObject *object)
QQmlAbstractBinding *binding = bindings;
while (binding) {
QQmlAbstractBinding *next = binding->m_nextBinding;
- binding->m_prevBinding = 0;
+ binding->setAddedToObject(false);
binding->m_nextBinding = 0;
binding->destroy();
binding = next;