summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/quuid.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-05-21 11:28:40 +0200
committerMarc Mutz <marc.mutz@qt.io>2024-05-29 14:24:30 +0200
commitfa8256bb5a36aa18480bc603d538bf07c8464ec7 (patch)
tree16fba36b0a45ef6b70539415b8813424fd959f0f /src/corelib/plugin/quuid.h
parentc70c81b371993ca865d523bb5f37eac4eb8a972b (diff)
QCryptographicHash: extend hashInto to more than one piece of data
This allows use of the noexcept static function in cases where more than one piece of data needs to be hashed, and concatenation of said data would have to allocate memory. Port QUuid to use the new function, allowing to mark the V3 and V5 create functions noexcept. As a drive-by, take QUuid by value in the internal helper function, fixing a Clazy warning. Task-number: QTBUG-125431 Change-Id: I17938f0be44c91085e2aaa5574953f8dceacc990 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin/quuid.h')
-rw-r--r--src/corelib/plugin/quuid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/quuid.h b/src/corelib/plugin/quuid.h
index 14029f1abc9..580784723c7 100644
--- a/src/corelib/plugin/quuid.h
+++ b/src/corelib/plugin/quuid.h
@@ -221,9 +221,9 @@ public:
public:
static QUuid createUuid();
#ifndef QT_BOOTSTRAPPED
- static QUuid createUuidV3(const QUuid &ns, const QByteArray &baseData);
+ static QUuid createUuidV3(const QUuid &ns, const QByteArray &baseData) noexcept;
#endif
- static QUuid createUuidV5(const QUuid &ns, const QByteArray &baseData);
+ static QUuid createUuidV5(const QUuid &ns, const QByteArray &baseData) noexcept;
#ifndef QT_BOOTSTRAPPED
static inline QUuid createUuidV3(const QUuid &ns, const QString &baseData)
{