diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index 2ecba93302e..8ef26babc00 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -663,8 +663,8 @@ public: if (bd->notifyObserver_helper(this, storage, observer, bindingObservers) == QtPrivate::QPropertyBindingData::Evaluated) { // evaluateBindings() can trash the observers. We need to re-fetch here. - if (QPropertyObserverPointer observer = d.firstObserver()) - observer.notify(this); + if (QPropertyObserverPointer obs = d.firstObserver()) + obs.notify(this); for (auto&& bindingPtr: bindingObservers) { auto *binding = static_cast(bindingPtr.get()); binding->notifyNonRecursive();