diff options
-rw-r--r-- | src/core/resources/qhandle_p.h | 3 | ||||
-rw-r--r-- | tests/auto/core/handle/tst_handle.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/core/resources/qhandle_p.h b/src/core/resources/qhandle_p.h index 6952c54e3..2916d7e42 100644 --- a/src/core/resources/qhandle_p.h +++ b/src/core/resources/qhandle_p.h @@ -51,6 +51,8 @@ #include <Qt3DCore/qt3dcore_global.h> #include <QtCore/QDebug> +class tst_Handle; // needed for friend class declaration below + QT_BEGIN_NAMESPACE namespace Qt3DCore { @@ -100,6 +102,7 @@ private: friend class QHandleManager<T, INDEXBITS>; + friend class ::tst_Handle; struct Data { quint32 m_index : IndexBits; diff --git a/tests/auto/core/handle/tst_handle.cpp b/tests/auto/core/handle/tst_handle.cpp index 9ed3a17d6..0fe760b94 100644 --- a/tests/auto/core/handle/tst_handle.cpp +++ b/tests/auto/core/handle/tst_handle.cpp @@ -35,10 +35,6 @@ ****************************************************************************/ #include <QtTest/QtTest> - -// Not really clean but as the QHandle(idx, counter) is private -// This allows to use this constructor in the tests -#define private public #include <Qt3DCore/private/qhandle_p.h> #if Q_BYTE_ORDER == Q_BIG_ENDIAN |