From 1c153ec7ceae331809b504bed7241739bc60e5b2 Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Mon, 27 Mar 2017 14:48:28 +0100 Subject: Remove pointless template member function from QAbstractFunctor Use template free function instead. Change-Id: I1171279423f164b877aaef21926ceda512fcbd2e Reviewed-by: Paul Lemire --- tests/auto/render/buffer/tst_buffer.cpp | 2 +- tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp | 2 +- tests/auto/render/meshfunctors/tst_meshfunctors.cpp | 6 +++--- tests/auto/render/qbuffer/tst_qbuffer.cpp | 2 +- tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp | 2 +- tests/auto/render/textures/tst_textures.cpp | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/auto/render/buffer/tst_buffer.cpp b/tests/auto/render/buffer/tst_buffer.cpp index b06425bd7..7f7c0adb9 100644 --- a/tests/auto/render/buffer/tst_buffer.cpp +++ b/tests/auto/render/buffer/tst_buffer.cpp @@ -50,7 +50,7 @@ public: bool operator ==(const Qt3DRender::QBufferDataGenerator &other) const Q_DECL_FINAL { - const TestFunctor *otherFunctor = functor_cast(&other); + const TestFunctor *otherFunctor = Qt3DRender::functor_cast(&other); if (otherFunctor != nullptr) return otherFunctor->m_size == m_size; return false; diff --git a/tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp b/tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp index 7cf70c03c..70fe957c5 100644 --- a/tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp +++ b/tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp @@ -51,7 +51,7 @@ public: bool operator ==(const Qt3DRender::QGeometryFactory &other) const Q_DECL_FINAL { - const TestFactory *otherFactory = functor_cast(&other); + const TestFactory *otherFactory = Qt3DRender::functor_cast(&other); if (otherFactory != nullptr) return otherFactory->m_size == m_size; return false; diff --git a/tests/auto/render/meshfunctors/tst_meshfunctors.cpp b/tests/auto/render/meshfunctors/tst_meshfunctors.cpp index 6aef510ea..bf5f0d55f 100644 --- a/tests/auto/render/meshfunctors/tst_meshfunctors.cpp +++ b/tests/auto/render/meshfunctors/tst_meshfunctors.cpp @@ -46,7 +46,7 @@ public: bool operator ==(const Qt3DRender::QGeometryFactory &other) const Q_DECL_OVERRIDE { - return functor_cast(&other); + return Qt3DRender::functor_cast(&other); } QT3D_FUNCTOR(MeshFunctorA) @@ -68,7 +68,7 @@ public: bool operator ==(const Qt3DRender::QGeometryFactory &other) const Q_DECL_OVERRIDE { - return functor_cast(&other); + return Qt3DRender::functor_cast(&other); } QT3D_FUNCTOR(MeshFunctorB) @@ -85,7 +85,7 @@ public: bool operator ==(const Qt3DRender::QGeometryFactory &other) const Q_DECL_OVERRIDE { - return functor_cast(&other); + return Qt3DRender::functor_cast(&other); } QT3D_FUNCTOR(MeshFunctorASub) diff --git a/tests/auto/render/qbuffer/tst_qbuffer.cpp b/tests/auto/render/qbuffer/tst_qbuffer.cpp index a65f27cb6..fdc25cbca 100644 --- a/tests/auto/render/qbuffer/tst_qbuffer.cpp +++ b/tests/auto/render/qbuffer/tst_qbuffer.cpp @@ -51,7 +51,7 @@ public: bool operator ==(const Qt3DRender::QBufferDataGenerator &other) const Q_DECL_FINAL { - const TestFunctor *otherFunctor = functor_cast(&other); + const TestFunctor *otherFunctor = Qt3DRender::functor_cast(&other); if (otherFunctor != nullptr) return otherFunctor->m_size == m_size; return false; diff --git a/tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp b/tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp index 76c3288e3..94f720097 100644 --- a/tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp +++ b/tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp @@ -58,7 +58,7 @@ public: bool operator ==(const Qt3DRender::QGeometryFactory &other) const Q_DECL_FINAL { - const TestFactory *otherFactory = functor_cast(&other); + const TestFactory *otherFactory = Qt3DRender::functor_cast(&other); if (otherFactory != nullptr) return otherFactory->m_size == m_size; return false; diff --git a/tests/auto/render/textures/tst_textures.cpp b/tests/auto/render/textures/tst_textures.cpp index 58cb76c94..82c638275 100644 --- a/tests/auto/render/textures/tst_textures.cpp +++ b/tests/auto/render/textures/tst_textures.cpp @@ -57,7 +57,7 @@ public: } bool operator ==(const Qt3DRender::QTextureImageDataGenerator &other) const Q_DECL_OVERRIDE { - const TestImageDataGenerator *otherFunctor = functor_cast(&other); + const TestImageDataGenerator *otherFunctor = Qt3DRender::functor_cast(&other); return (otherFunctor != Q_NULLPTR && otherFunctor->m_id == m_id); } @@ -78,7 +78,7 @@ public: } bool operator ==(const Qt3DRender::QTextureGenerator &other) const Q_DECL_OVERRIDE { - const TestTextureGenerator *otherFunctor = functor_cast(&other); + const TestTextureGenerator *otherFunctor = Qt3DRender::functor_cast(&other); return (otherFunctor != Q_NULLPTR && otherFunctor->m_id == m_id); } -- cgit v1.2.3