summaryrefslogtreecommitdiffstats
path: root/dom/indexedDB
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:29:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:29:21 +0000
commitf34df9db04b7adaff418b61c35fb1346c1c2fccd (patch)
treeca9b0e61a1c03f0246b0371423bbbe570193e2f1 /dom/indexedDB
parentAdding upstream version 115.8.0esr. (diff)
downloadfirefox-esr-f34df9db04b7adaff418b61c35fb1346c1c2fccd.tar.xz
firefox-esr-f34df9db04b7adaff418b61c35fb1346c1c2fccd.zip
Adding upstream version 115.9.0esr.upstream/115.9.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/indexedDB')
-rw-r--r--dom/indexedDB/SafeRefPtr.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/dom/indexedDB/SafeRefPtr.h b/dom/indexedDB/SafeRefPtr.h
index 3d7a5d635e..91fa4dded1 100644
--- a/dom/indexedDB/SafeRefPtr.h
+++ b/dom/indexedDB/SafeRefPtr.h
@@ -219,8 +219,7 @@ class MOZ_IS_REFPTR MOZ_TRIVIAL_ABI SafeRefPtr {
aOther.mRawPtr = nullptr;
}
SafeRefPtr& operator=(SafeRefPtr&& aOther) noexcept {
- assign_assuming_AddRef(aOther.mRawPtr);
- aOther.mRawPtr = nullptr;
+ assign_assuming_AddRef(aOther.forget().take());
return *this;
}