import from UXP: Bug 1466909 - Use AddLvalueReference for UniquePtr's operator*(). (86402bf7)

This commit is contained in:
2022-04-18 14:26:39 +08:00
parent 645785871d
commit 371ec8c2cd
+1 -1
View File
@@ -314,7 +314,7 @@ public:
return *this;
}
T& operator*() const { return *get(); }
typename AddLvalueReference<T>::Type operator*() const { return *get(); }
Pointer operator->() const
{
MOZ_ASSERT(get(), "dereferencing a UniquePtr containing nullptr");