mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[MFBT] Make move assignment of RefPtr have the same behavior as nsCOMPtr
This commit is contained in:
parent
c230e21d23
commit
e6e8224040
1 changed files with 1 additions and 2 deletions
|
|
@ -214,8 +214,7 @@ public:
|
|||
RefPtr<T>&
|
||||
operator=(RefPtr<T> && aRefPtr)
|
||||
{
|
||||
assign_assuming_AddRef(aRefPtr.mRawPtr);
|
||||
aRefPtr.mRawPtr = nullptr;
|
||||
assign_assuming_AddRef(aRefPtr.forget().take());
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue