mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
import from UXP: [MFBT] Make move assignment of RefPtr have the same behavior as nsCOMPtr (e6e82240)
This commit is contained in:
+1
-2
@@ -215,8 +215,7 @@ public:
|
||||
RefPtr<T>&
|
||||
operator=(RefPtr<T> && aRefPtr)
|
||||
{
|
||||
assign_assuming_AddRef(aRefPtr.mRawPtr);
|
||||
aRefPtr.mRawPtr = nullptr;
|
||||
assign_assuming_AddRef(aRefPtr.forget().take());
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user