Bug 1466909 - Use AddLvalueReference for UniquePtr's operator*().

master
Fedor 2020-11-26 05:41:30 +02:00
parent df5c97aaf6
commit 3b45cb2e77
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,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");