From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- mfbt/RefPtr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mfbt/RefPtr.h') diff --git a/mfbt/RefPtr.h b/mfbt/RefPtr.h index 343e78d61e..27f22356ba 100644 --- a/mfbt/RefPtr.h +++ b/mfbt/RefPtr.h @@ -97,7 +97,7 @@ class MOZ_IS_REFPTR RefPtr { } } - RefPtr(RefPtr&& aRefPtr) : mRawPtr(aRefPtr.mRawPtr) { + RefPtr(RefPtr&& aRefPtr) noexcept : mRawPtr(aRefPtr.mRawPtr) { aRefPtr.mRawPtr = nullptr; } @@ -224,7 +224,7 @@ class MOZ_IS_REFPTR RefPtr { template >> - RefPtr& operator=(RefPtr&& aRefPtr) { + RefPtr& operator=(RefPtr&& aRefPtr) noexcept { assign_assuming_AddRef(aRefPtr.forget().take()); return *this; } -- cgit v1.2.3