mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +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>&
|
RefPtr<T>&
|
||||||
operator=(RefPtr<T> && aRefPtr)
|
operator=(RefPtr<T> && aRefPtr)
|
||||||
{
|
{
|
||||||
assign_assuming_AddRef(aRefPtr.mRawPtr);
|
assign_assuming_AddRef(aRefPtr.forget().take());
|
||||||
aRefPtr.mRawPtr = nullptr;
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue