summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMate Barany <mate.barany@qt.io>2025-12-17 16:03:03 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2025-12-18 12:46:26 +0000
commitd97f16a1f13fd2f9743f300576f8d338f289e594 (patch)
tree0f1deb4d0265acdf6d4ee6b2c57f0d8e189d3248 /src
parent91f617899e63817c32eb47d8bbcf08603734158a (diff)
Remove noexcept from QAuthenticator::clear()
Re-initializing the QAuthenticatorPrivate indirectly allocates memory via QByterray::number, so it might throw. Found during an API review. Pick-to: 6.11 Change-Id: I1c56b2d98f64d9b738802781f2266180b7825b09 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/network/kernel/qauthenticator.cpp2
-rw-r--r--src/network/kernel/qauthenticator.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp
index 2ef1c31ce1c..7be1d7fe3aa 100644
--- a/src/network/kernel/qauthenticator.cpp
+++ b/src/network/kernel/qauthenticator.cpp
@@ -365,7 +365,7 @@ bool QAuthenticator::isNull() const
state.
*/
-void QAuthenticator::clear() noexcept
+void QAuthenticator::clear()
{
*d = QAuthenticatorPrivate();
d->phase = QAuthenticatorPrivate::Done;
diff --git a/src/network/kernel/qauthenticator.h b/src/network/kernel/qauthenticator.h
index db309fb87ad..c4993ff0fc7 100644
--- a/src/network/kernel/qauthenticator.h
+++ b/src/network/kernel/qauthenticator.h
@@ -44,7 +44,7 @@ public:
bool isNull() const;
void detach();
- void clear() noexcept;
+ void clear();
private:
friend class QAuthenticatorPrivate;
QAuthenticatorPrivate *d;