mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1129877 - Add a templatized move constructor for nsRefPtr. v1 r=froydnj
This commit is contained in:
parent
ef20e12353
commit
a13ed18313
@ -108,6 +108,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
template <typename I>
|
||||
nsRefPtr(nsRefPtr<I>&& aSmartPtr)
|
||||
: mRawPtr(aSmartPtr.forget().take())
|
||||
// construct from |Move(nsRefPtr<SomeSubclassOfT>)|.
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_IMPLICIT nsRefPtr(const nsCOMPtr_helper& aHelper);
|
||||
|
||||
// Assignment operators
|
||||
|
Loading…
Reference in New Issue
Block a user