statemachine: Move invariant code out of loop body
authorKent Hansen <kent.hansen@nokia.com>
Wed, 11 Jul 2012 23:01:17 +0000 (01:01 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 12 Jul 2012 18:38:02 +0000 (20:38 +0200)
commitb76014b8ef3862b4168148cb20e1108d9c0df5f6
tree53fc4e4c0fdf6dd6d4c1f58c72ff8c60c9cbfd40
parent5b87b6eda3a3958ccb33aa411f48bdee496717a9
statemachine: Move invariant code out of loop body

The lca variable doesn't change inside the loop. Comparing our
implementation to the algorithm in the SCXML spec reveals that this
check should indeed be done outside the loop.

Change-Id: I5e9824758fd147766e975d107a73561bd7f5a190
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/corelib/statemachine/qstatemachine.cpp