diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-03-14 11:27:38 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-03-15 19:50:56 +0000 |
commit | c5e54d58e8763898db81e1f3b5b5460d6e4b9455 (patch) | |
tree | a6398fd1ce5a5338aefbac6d4d0aadfd788f60e7 | |
parent | 1105a27299adcecfbddbe74b407c212961e8685d (diff) | |
download | qttools-c5e54d58e8763898db81e1f3b5b5460d6e4b9455.tar.gz |
QHash: use the public functions to set the global hash seed
Task-number: QTBUG-47566
Change-Id: I4a7dc1fe14154695b968fffd14abd2e3189c6ad2
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | src/qdoc/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qdoc/main.cpp b/src/qdoc/main.cpp index f78c59822..e5fe2412f 100644 --- a/src/qdoc/main.cpp +++ b/src/qdoc/main.cpp @@ -27,6 +27,7 @@ ****************************************************************************/ #include <qglobal.h> +#include <qhashfunctions.h> #include <stdlib.h> #include "codemarker.h" #include "codeparser.h" @@ -694,7 +695,6 @@ void QDocCommandLineParser::process(const QCoreApplication &app) } } -extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed; QT_END_NAMESPACE int main(int argc, char **argv) @@ -703,7 +703,7 @@ int main(int argc, char **argv) // Initialize Qt: #ifndef QT_BOOTSTRAPPED - 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 if it wasn't set yet #endif QCoreApplication app(argc, argv); app.setApplicationVersion(QLatin1String(QT_VERSION_STR)); |