summaryrefslogtreecommitdiffstats
path: root/src/tools/uic
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-03-14 11:22:44 -0700
committerLiang Qi <liang.qi@qt.io>2017-03-16 05:05:00 +0000
commitfb061e586d9a9b1122a4db5f3d4c12d3c55435a1 (patch)
tree1726ceb2aafcb82d11373d953f0a8d387e1abb31 /src/tools/uic
parent5e18f4ce0b16e9ff3101493d603bbc51b93dd2cb (diff)
uic & rcc: use the public API to set the hash seed
Instead of relying on a private symbol exported from QtCore. Task-number: QTBUG-47566 Change-Id: I4a7dc1fe14154695b968fffd14abd2b21a18203b Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/tools/uic')
-rw-r--r--src/tools/uic/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/uic/main.cpp b/src/tools/uic/main.cpp
index fca604690e..3599470403 100644
--- a/src/tools/uic/main.cpp
+++ b/src/tools/uic/main.cpp
@@ -32,6 +32,7 @@
#include <qfile.h>
#include <qdir.h>
+#include <qhashfunctions.h>
#include <qtextstream.h>
#include <qtextcodec.h>
#include <qcoreapplication.h>
@@ -39,11 +40,10 @@
#include <qcommandlineparser.h>
QT_BEGIN_NAMESPACE
-extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed;
int runUic(int argc, char *argv[])
{
- qt_qhash_seed.testAndSetRelaxed(-1, 0); // set the hash seed to 0 if it wasn't set yet
+ qSetGlobalQHashSeed(0); // set the hash seed to 0
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationVersion(QString::fromLatin1(QT_VERSION_STR));