Skip to content

Commit 2e2edd6

Browse files
mariobam-kuhn
authored andcommitted
Fix qt qhash seed for QT >= 5.6.0
1 parent 19fd3e8 commit 2e2edd6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/src/core/testqgsogcutils.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ class TestQgsOgcUtils : public QObject
3333
void initTestCase()
3434
{
3535
// Needed on Qt 5 so that the serialization of XML is consistent among all executions
36+
#if QT_VERSION < QT_VERSION_CHECK( 5, 6 ,0)
3637
extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed;
3738
qt_qhash_seed.store( 0 );
39+
#else
40+
qSetGlobalQHashSeed( 0 );
41+
#endif
42+
3843

3944
//
4045
// Runs once before any tests are run

0 commit comments

Comments
 (0)