Bug 1129877 - Add a templatized move constructor for nsRefPtr. v1 r=froydnj

This commit is contained in:
Bobby Holley 2015-02-09 18:32:12 -08:00
parent ef20e12353
commit a13ed18313

View File

@ -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