Fix qt qhash seed for QT >= 5.6.0

This commit is contained in:
Mario Baranzini 2017-08-05 15:49:24 +02:00 committed by Matthias Kuhn
parent 19fd3e8912
commit 2e2edd64c2

View File

@ -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