diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index b2059229d20..e6e1dec2c2a 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -385,11 +385,11 @@ public: QPropertyBindingSourceLocation sourceLocation() const { if (!hasCustomVTable()) - return this->location; - QPropertyBindingSourceLocation location; + return location; + QPropertyBindingSourceLocation result; constexpr auto msg = "Custom location"; - location.fileName = msg; - return location; + result.fileName = msg; + return result; } QPropertyBindingError bindingError() const { return m_error; } QMetaType valueMetaType() const { return metaType; }