summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qstate.cpp
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-07-04 22:14:24 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-10 06:20:55 +0200
commitd2a6f8e6dd96b015e2fe5c098331f0fd6387ce43 (patch)
tree229a54e9cf615f82c0e549c03457f925c98c38d9 /src/corelib/statemachine/qstate.cpp
parent130830e2d3b8925350e519ddfc562483bb16588f (diff)
statemachine: Tiny refactoring to avoid double lookup
Change-Id: I5040ca417dc12e1e0938ba7669b3017e414d13f9 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'src/corelib/statemachine/qstate.cpp')
-rw-r--r--src/corelib/statemachine/qstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/statemachine/qstate.cpp b/src/corelib/statemachine/qstate.cpp
index 39651b9736..27cec1d87e 100644
--- a/src/corelib/statemachine/qstate.cpp
+++ b/src/corelib/statemachine/qstate.cpp
@@ -242,7 +242,7 @@ void QState::assignProperty(QObject *object, const char *name,
}
for (int i = 0; i < d->propertyAssignments.size(); ++i) {
QPropertyAssignment &assn = d->propertyAssignments[i];
- if ((assn.object == object) && (assn.propertyName == name)) {
+ if (assn.hasTarget(object, name)) {
assn.value = value;
return;
}