diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-11-09 21:12:46 -0500 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-11-18 10:54:19 +0000 |
commit | 0032e8313df7ea9201032c46377f9db24304890f (patch) | |
tree | 355b324f8706cedf76b75e997a9e5d43caceb396 | |
parent | d7df9b336ae34ff4c4b64f7aa4e0be2579c95ece (diff) | |
download | UXP-0032e8313df7ea9201032c46377f9db24304890f.tar UXP-0032e8313df7ea9201032c46377f9db24304890f.tar.gz UXP-0032e8313df7ea9201032c46377f9db24304890f.tar.lz UXP-0032e8313df7ea9201032c46377f9db24304890f.tar.xz UXP-0032e8313df7ea9201032c46377f9db24304890f.zip |
Bug 1466909 - Use AddLvalueReference for UniquePtr's operator*().
This is required for UniquePtr to accept <void>,
which is required for PseudoHandle = mozilla::UniquePtr<T, JS::FreePolicy>;
in turn for mozilla::SegmentedVector<PseudoHandle<void>> uniquePtrArena_;
Tag #1679
-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"); |