diff options
Diffstat (limited to 'js/src/ds/Fifo.h')
-rw-r--r-- | js/src/ds/Fifo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/ds/Fifo.h b/js/src/ds/Fifo.h index 4946c8452c..61426aa7b0 100644 --- a/js/src/ds/Fifo.h +++ b/js/src/ds/Fifo.h @@ -94,7 +94,7 @@ class Fifo // Push an element to the back of the queue. This method can take either a // |const T&| or a |T&&|. template <typename U> - MOZ_MUST_USE bool pushBack(U&& u) { + [[nodiscard]] bool pushBack(U&& u) { if (!rear_.append(mozilla::Forward<U>(u))) return false; if (!fixup()) { @@ -106,7 +106,7 @@ class Fifo // Construct a T in-place at the back of the queue. template <typename... Args> - MOZ_MUST_USE bool emplaceBack(Args&&... args) { + [[nodiscard]] bool emplaceBack(Args&&... args) { if (!rear_.emplaceBack(mozilla::Forward<Args>(args)...)) return false; if (!fixup()) { @@ -127,7 +127,7 @@ class Fifo } // Remove the front element from the queue. - MOZ_MUST_USE bool popFront() { + [[nodiscard]] bool popFront() { MOZ_ASSERT(!empty()); T t(mozilla::Move(front())); front_.popBack(); |