Skip to content
Permalink
Browse files

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 2e2edd64c2d0c7391f40f172f83269c117e77872
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/src/core/testqgsogcutils.cpp
@@ -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

0 comments on commit 2e2edd6

Please sign in to comment.
You can’t perform that action at this time.