Fix build with Qt 5.9

This commit is contained in:
Martin Dobias 2017-07-19 22:17:32 +02:00
parent 8d4d5ab3ea
commit 3d0ce5f101

View File

@ -33,14 +33,13 @@ class TestQgsOgcUtils : public QObject
void initTestCase() void initTestCase()
{ {
// Needed on Qt 5 so that the serialization of XML is consistent among all executions // Needed on Qt 5 so that the serialization of XML is consistent among all executions
#if QT_VERSION < QT_VERSION_CHECK( 5, 6 ,0) #if QT_VERSION >= 0x50600
qSetGlobalQHashSeed( 0 );
#else
extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed; extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed;
qt_qhash_seed.store( 0 ); qt_qhash_seed.store( 0 );
#else
qSetGlobalQHashSeed( 0 );
#endif #endif
// //
// Runs once before any tests are run // Runs once before any tests are run
// //