diff --git a/src/corelib/tools/qshareddata_impl.h b/src/corelib/tools/qshareddata_impl.h index 930c35879f3..0a218b0b4b9 100644 --- a/src/corelib/tools/qshareddata_impl.h +++ b/src/corelib/tools/qshareddata_impl.h @@ -59,8 +59,8 @@ class QExplicitlySharedDataPointerV2 public: constexpr QExplicitlySharedDataPointerV2() noexcept : d(nullptr) {} - explicit QExplicitlySharedDataPointerV2(T *d) noexcept - : d(d) + explicit QExplicitlySharedDataPointerV2(T *t) noexcept + : d(t) { if (d) d->ref.ref();