aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlbinding.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-04-23 21:57:06 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-10 11:41:00 +0000
commit5d5343a6bc02c0df3723cb9650067e972aebe8ff (patch)
tree624aca781e8bd3a095bbaeef972c9b994727116c /src/qml/qml/qqmlbinding.cpp
parent9de77e056583b0bcfd7e17d855ac8956847c58eb (diff)
Save one more pointer on each binding
Fold the isAddedToObject flag into the nextBinding pointer. Reorder the members to avoid holes in the data. Change-Id: I0a216940f52020a5d48a6ed05cc236c248161b08 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlbinding.cpp')
-rw-r--r--src/qml/qml/qqmlbinding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlbinding.cpp b/src/qml/qml/qqmlbinding.cpp
index 72f35e17d6..7581aa6654 100644
--- a/src/qml/qml/qqmlbinding.cpp
+++ b/src/qml/qml/qqmlbinding.cpp
@@ -191,7 +191,7 @@ void QQmlBinding::update(QQmlPropertyPrivate::WriteFlags flags)
QV4::ScopedValue result(scope, QQmlJavaScriptExpression::evaluate(&isUndefined));
bool error = false;
- if (!watcher.wasDeleted() && m_isAddedToObject && !hasError())
+ if (!watcher.wasDeleted() && isAddedToObject() && !hasError())
error = !write(pd, result, isUndefined, flags);
if (!watcher.wasDeleted()) {