Commit 52cb4d3a authored by David Faure's avatar David Faure

Port away from qt_qhash_seed which is going away in Qt 5.9

https://codereview.qt-project.org/188474

qSetGlobalQHashSeed exists since Qt 5.6, but this project seems to
require only 5.2, so I added a Qt version ifdef.
parent c17302f7
......@@ -42,8 +42,13 @@
int main(int argc, char *argv[])
{
// Force QDomDocument to use a deterministic XML attribute order
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
qSetGlobalQHashSeed(0);
#else
extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed;
qt_qhash_seed.store(0);
#endif
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
QCoreApplication::setAttribute(Qt::AA_X11InitThreads);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment