diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-05-18 06:19:13 +0400 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-05-20 05:55:10 +0000 |
commit | bfae282e8fb6d6d83e92df712f93b583616169d9 (patch) | |
tree | 3c29f6ac29f3a679b6f02b632212384bf4df1018 /src/render/frontend/qdepthtest.cpp | |
parent | 5e28b995f5e43c6a908906966190f4ad594edede (diff) |
Do not pass `this` to Private c-tor
For classes derived from QNodePrivate, it is not used anymore.
Change-Id: I9573042500c2c7533687d251e72bac14cb793525
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qdepthtest.cpp')
-rw-r--r-- | src/render/frontend/qdepthtest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/frontend/qdepthtest.cpp b/src/render/frontend/qdepthtest.cpp index e7ba1c91e..331a5be8d 100644 --- a/src/render/frontend/qdepthtest.cpp +++ b/src/render/frontend/qdepthtest.cpp @@ -49,8 +49,8 @@ class QDepthTest; class QDepthTestPrivate : public QRenderStatePrivate { public : - QDepthTestPrivate(QDepthTest *qq) - : QRenderStatePrivate(qq, QRenderState::DepthTest) + QDepthTestPrivate() + : QRenderStatePrivate(QRenderState::DepthTest) , m_func(QDepthTest::Never) { } @@ -67,7 +67,7 @@ void QDepthTest::copy(const QNode *ref) } QDepthTest::QDepthTest(QNode *parent) - : QRenderState(*new QDepthTestPrivate(this), parent) + : QRenderState(*new QDepthTestPrivate, parent) { } |