Fix -Wshadow warnings

Turns out headersclean doesn't run on this header...

Change-Id: Ice8691dc0b4b46b2bde38467ca398b61b569a769
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2020-07-24 16:58:00 +02:00
parent 3d89fa97cc
commit c580a5cdd4

View File

@ -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();