aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2022-08-26 17:40:24 +0200
committerIvan Solovev <ivan.solovev@qt.io>2022-08-29 20:48:09 +0200
commit309e2e864fae14089667f625acd1688a4d469943 (patch)
treec302afb5e7d7d695633db68b044c778b4cab94ca /tools
parentf9205f39188ba769e597d87e15b0233bcc9776da (diff)
QtDeclarative: port away from deprecated qSetGlobalQHashSeed(0)
Use QHashSeed::setDeterministicGlobalSeed() instead Task-number: QTBUG-105102 Change-Id: I1d13f3872b335ff9998f7c4538d3b9c3c77fe232 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlcachegen/qmlcachegen.cpp2
-rw-r--r--tools/qmllint/main.cpp2
-rw-r--r--tools/qmlls/qmllanguageservertool.cpp2
-rw-r--r--tools/qmltc/main.cpp2
-rw-r--r--tools/qmltyperegistrar/qmltyperegistrar.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp
index 6ade0987f9..fccc107c7a 100644
--- a/tools/qmlcachegen/qmlcachegen.cpp
+++ b/tools/qmlcachegen/qmlcachegen.cpp
@@ -56,7 +56,7 @@ static bool argumentsFromCommandLineAndFile(QStringList& allArguments, const QSt
int main(int argc, char **argv)
{
// Produce reliably the same output for the same input by disabling QHash's random seeding.
- qSetGlobalQHashSeed(0);
+ QHashSeed::setDeterministicGlobalSeed();
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationName(QStringLiteral("qmlcachegen"));
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp
index 7c6378b518..95cd2ec29c 100644
--- a/tools/qmllint/main.cpp
+++ b/tools/qmllint/main.cpp
@@ -31,7 +31,7 @@ constexpr int JSON_LOGGING_FORMAT_REVISION = 3;
int main(int argv, char *argc[])
{
- qSetGlobalQHashSeed(0);
+ QHashSeed::setDeterministicGlobalSeed();
QList<QQmlJSLogger::Category> categories;
QCoreApplication app(argv, argc);
diff --git a/tools/qmlls/qmllanguageservertool.cpp b/tools/qmlls/qmllanguageservertool.cpp
index 2dfcc3894d..04714ff02a 100644
--- a/tools/qmlls/qmllanguageservertool.cpp
+++ b/tools/qmlls/qmllanguageservertool.cpp
@@ -127,7 +127,7 @@ int main(int argv, char *argc[])
perror("Cannot set mode for stdin");
#endif
- qSetGlobalQHashSeed(0);
+ QHashSeed::setDeterministicGlobalSeed();
QCoreApplication app(argv, argc);
QCoreApplication::setApplicationName("qmlls");
QCoreApplication::setApplicationVersion(QT_VERSION_STR);
diff --git a/tools/qmltc/main.cpp b/tools/qmltc/main.cpp
index 3404acfb62..d3ba670ada 100644
--- a/tools/qmltc/main.cpp
+++ b/tools/qmltc/main.cpp
@@ -43,7 +43,7 @@ int main(int argc, char **argv)
{
// Produce reliably the same output for the same input by disabling QHash's
// random seeding.
- qSetGlobalQHashSeed(0);
+ QHashSeed::setDeterministicGlobalSeed();
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationName(u"qmltc"_s);
QCoreApplication::setApplicationVersion(QStringLiteral(QT_VERSION_STR));
diff --git a/tools/qmltyperegistrar/qmltyperegistrar.cpp b/tools/qmltyperegistrar/qmltyperegistrar.cpp
index f590af9a62..5d895bbed7 100644
--- a/tools/qmltyperegistrar/qmltyperegistrar.cpp
+++ b/tools/qmltyperegistrar/qmltyperegistrar.cpp
@@ -15,7 +15,7 @@ using namespace Qt::Literals;
int main(int argc, char **argv)
{
// Produce reliably the same output for the same input by disabling QHash's random seeding.
- qSetGlobalQHashSeed(0);
+ QHashSeed::setDeterministicGlobalSeed();
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationName(QStringLiteral("qmltyperegistrar"));