Bug 1466909 - Use AddLvalueReference for UniquePtr's operator*().
parent
df5c97aaf6
commit
3b45cb2e77
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue