Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix qt qhash seed for QT >= 5.6.0
  • Loading branch information
marioba authored and m-kuhn committed Aug 5, 2017
1 parent 19fd3e8 commit 2e2edd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/core/testqgsogcutils.cpp
Expand Up @@ -33,8 +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)
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 2e2edd6

Please sign in to comment.