diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qpropertyprivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qpropertyprivate.h b/src/corelib/kernel/qpropertyprivate.h index dde6bb8d01..e65ab324fa 100644 --- a/src/corelib/kernel/qpropertyprivate.h +++ b/src/corelib/kernel/qpropertyprivate.h @@ -245,7 +245,7 @@ struct QPropertyGuardFunctionHelper<T, Class, Guard, false> static auto guard(const QMetaType &metaType, void *dataPtr, QPropertyBindingFunction eval, void *owner) -> bool { - T t; + T t = T(); eval(metaType, &t); if (!(static_cast<Class *>(owner)->*Guard)(t)) return false; |