summaryrefslogtreecommitdiffstats
path: root/mfbt/RefPtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'mfbt/RefPtr.h')
-rw-r--r--mfbt/RefPtr.h4
1 files changed, 2 insertions, 2 deletions
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<T>&& aRefPtr) : mRawPtr(aRefPtr.mRawPtr) {
+ RefPtr(RefPtr<T>&& aRefPtr) noexcept : mRawPtr(aRefPtr.mRawPtr) {
aRefPtr.mRawPtr = nullptr;
}
@@ -224,7 +224,7 @@ class MOZ_IS_REFPTR RefPtr {
template <typename I,
typename = std::enable_if_t<std::is_convertible_v<I*, T*>>>
- RefPtr<T>& operator=(RefPtr<I>&& aRefPtr) {
+ RefPtr<T>& operator=(RefPtr<I>&& aRefPtr) noexcept {
assign_assuming_AddRef(aRefPtr.forget().take());
return *this;
}