From c580a5cdd452cd1a0ef4ebd7f618df72ef67a230 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Fri, 24 Jul 2020 16:58:00 +0200 Subject: [PATCH] Fix -Wshadow warnings Turns out headersclean doesn't run on this header... Change-Id: Ice8691dc0b4b46b2bde38467ca398b61b569a769 Reviewed-by: Lars Knoll --- src/corelib/tools/qshareddata_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();