From d3b34e9433b4200e39d0933c1cb26b309a4e6ea5 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 16 Jul 2022 13:49:07 -0700 Subject: tst_Matrix4x4_AVX2: add a placement operator new MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a build error for me with upcoming changes: qmetatype.h:2350:65: error: no matching function for call to ‘tst_Matrix4x4_AVX2::operator new(sizetype, void*&)’ Change-Id: I36b24183fbd041179f2ffffd17026a5a0a10f312 Reviewed-by: Paul Lemire --- tests/auto/core/matrix4x4_avx2/tst_matrix4x4_avx2.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/auto/core/matrix4x4_avx2/tst_matrix4x4_avx2.cpp b/tests/auto/core/matrix4x4_avx2/tst_matrix4x4_avx2.cpp index 358a24e7f..cc5071aa9 100644 --- a/tests/auto/core/matrix4x4_avx2/tst_matrix4x4_avx2.cpp +++ b/tests/auto/core/matrix4x4_avx2/tst_matrix4x4_avx2.cpp @@ -11,6 +11,8 @@ class tst_Matrix4x4_AVX2: public QObject { Q_OBJECT public: + void *operator new(size_t, void *ptr) { return ptr; } + void operator delete(void *, void *) {} QT3D_ALIGNED_MALLOC_AND_FREE() private Q_SLOTS: -- cgit v1.2.3