Skip to content

Commit

Permalink
Fix build with Qt 5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Sep 15, 2017
1 parent 8d4d5ab commit 3d0ce5f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/src/core/testqgsogcutils.cpp
Expand Up @@ -33,14 +33,13 @@ class TestQgsOgcUtils : public QObject
void initTestCase()
{
// 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;
qt_qhash_seed.store( 0 );
#else
qSetGlobalQHashSeed( 0 );
#endif


//
// Runs once before any tests are run
//
Expand Down

0 comments on commit 3d0ce5f

Please sign in to comment.