mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix qt qhash seed for QT >= 5.6.0
This commit is contained in:
parent
19fd3e8912
commit
2e2edd64c2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user