forked from mirrors/gecko-dev
Bug 1879444 - Make SafeRefPtr move assignment work as RefPtr does r=smaug,dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D201598
This commit is contained in:
parent
5c69e2b099
commit
59278b1c56
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue