From 4ef99b8fbb3ba32df5591ac306fe8a7baa31c92c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 1 Apr 2021 23:51:10 -0700 Subject: Deprecate qGlobalQHashSeed and qSetGlobalQHashSeed in Qt 6.6 That's two years from when the replacements were added (6.2). Change-Id: Id2983978ad544ff79911fffd1671f7dd38fede02 Reviewed-by: Lars Knoll --- src/corelib/tools/qhash.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/corelib/tools/qhash.cpp') diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp index 6301e7595d..315b5f17bf 100644 --- a/src/corelib/tools/qhash.cpp +++ b/src/corelib/tools/qhash.cpp @@ -868,9 +868,10 @@ void QHashSeed::resetRandomGlobalSeed() qt_qhash_seed.storeRelaxed(seed + 1); } - +#if QT_DEPRECATED_SINCE(6,6) /*! \relates QHash \since 5.6 + \obsolete Use QHashSeed::globalSeed() instead. Returns the current global QHash seed. @@ -886,6 +887,7 @@ int qGlobalQHashSeed() /*! \relates QHash \since 5.6 + \obsolete Use QHashSeed instead. Sets the global QHash seed to \a newSeed. @@ -919,6 +921,7 @@ void qSetGlobalQHashSeed(int newSeed) fprintf(stderr, "qSetGlobalQHashSeed: forced seed value is not 0; ignoring call\n"); } } +#endif // QT_DEPRECATED_SINCE(6,6) /*! \internal -- cgit v1.2.3