diff options
-rw-r--r-- | src/qml/qml/qqmlobjectcreator_p.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlobjectcreator_p.h b/src/qml/qml/qqmlobjectcreator_p.h index ef03b1909e..8b1c251e2b 100644 --- a/src/qml/qml/qqmlobjectcreator_p.h +++ b/src/qml/qml/qqmlobjectcreator_p.h @@ -165,11 +165,9 @@ public: void removePendingBinding(QObject *target, int propertyIndex) { QList<DeferredQPropertyBinding> &pendingBindings = sharedState.data()->allQPropertyBindings; - auto it = std::remove_if(pendingBindings.begin(), pendingBindings.end(), - [&](const DeferredQPropertyBinding &deferred) { + pendingBindings.removeIf([&](const DeferredQPropertyBinding &deferred) { return deferred.properyIndex == propertyIndex && deferred.target == target; }); - pendingBindings.erase(it, pendingBindings.end()); } private: |