diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-11-09 21:12:46 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-11-09 21:12:46 -0500 |
commit | 4df401650fe6695d46f991d7a2ac000b6e61929a (patch) | |
tree | 04f4719a3558792ac6cb9f72d3c64a02a6abfb5a /mfbt | |
parent | 9075c55f030605cd75333c46d93872e08f553a2b (diff) | |
download | aura-central-4df401650fe6695d46f991d7a2ac000b6e61929a.tar.gz |
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 mcp-graveyard/UXP%1679
Diffstat (limited to 'mfbt')
-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 5679d4e03..97fb8d27a 100644 --- a/mfbt/UniquePtr.h +++ b/mfbt/UniquePtr.h @@ -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"); |