summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Solovev <[email protected]>2022-08-26 17:35:52 +0200
committerIvan Solovev <[email protected]>2022-08-30 22:46:34 +0200
commit35a50491e703e4833020be66073b8cdd310bc859 (patch)
tree97ba65cef48e5c9177e034226892ca5eb86cebae
parentc81d5ec19a3bb85a4b8197bd3176dc873c3b7a68 (diff)
QtBase tools: port away from deprecated qSetGlobalQHashSeed(0)
Use QHashSeed::setDeterministicGlobalSeed() instead Task-number: QTBUG-105102 Change-Id: Ib7d4b6e7bca89870913a140d68bbdd6018e8f8ed Reviewed-by: Thiago Macieira <[email protected]> Reviewed-by: Giuseppe D'Angelo <[email protected]>
-rw-r--r--qmake/main.cpp2
-rw-r--r--src/tools/uic/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/qmake/main.cpp b/qmake/main.cpp
index e546b1705ca..9b96ab73387 100644
--- a/qmake/main.cpp
+++ b/qmake/main.cpp
@@ -423,7 +423,7 @@ bool qmake_setpwd(const QString &p)
int runQMake(int argc, char **argv)
{
- qSetGlobalQHashSeed(0);
+ QHashSeed::setDeterministicGlobalSeed();
// stderr is unbuffered by default, but stdout buffering depends on whether
// there is a terminal attached. Buffering can make output from stderr and stdout
diff --git a/src/tools/uic/main.cpp b/src/tools/uic/main.cpp
index 01712da485b..467bcc55749 100644
--- a/src/tools/uic/main.cpp
+++ b/src/tools/uic/main.cpp
@@ -20,7 +20,7 @@ using namespace Qt::StringLiterals;
int runUic(int argc, char *argv[])
{
- qSetGlobalQHashSeed(0); // set the hash seed to 0
+ QHashSeed::setDeterministicGlobalSeed();
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationVersion(QString::fromLatin1(QT_VERSION_STR));