mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Fix build with Qt 5.9
This commit is contained in:
parent
8d4d5ab3ea
commit
3d0ce5f101
@ -33,14 +33,13 @@ class TestQgsOgcUtils : public QObject
|
|||||||
void initTestCase()
|
void initTestCase()
|
||||||
{
|
{
|
||||||
// Needed on Qt 5 so that the serialization of XML is consistent among all executions
|
// 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;
|
extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed;
|
||||||
qt_qhash_seed.store( 0 );
|
qt_qhash_seed.store( 0 );
|
||||||
#else
|
|
||||||
qSetGlobalQHashSeed( 0 );
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Runs once before any tests are run
|
// Runs once before any tests are run
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user