diff options
Diffstat (limited to 'mfbt/UniquePtr.h')
-rw-r--r-- | mfbt/UniquePtr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mfbt/UniquePtr.h b/mfbt/UniquePtr.h index 7e1035bc6..79d76cf02 100644 --- a/mfbt/UniquePtr.h +++ b/mfbt/UniquePtr.h @@ -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"); |