summaryrefslogtreecommitdiff
path: root/js/src/ds/PriorityQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/ds/PriorityQueue.h')
-rw-r--r--js/src/ds/PriorityQueue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/ds/PriorityQueue.h b/js/src/ds/PriorityQueue.h
index ce8d1af7e6..a7430620cf 100644
--- a/js/src/ds/PriorityQueue.h
+++ b/js/src/ds/PriorityQueue.h
@@ -34,7 +34,7 @@ class PriorityQueue
: heap(ap)
{}
- MOZ_MUST_USE bool reserve(size_t capacity) {
+ [[nodiscard]] bool reserve(size_t capacity) {
return heap.reserve(capacity);
}
@@ -56,7 +56,7 @@ class PriorityQueue
return highest;
}
- MOZ_MUST_USE bool insert(const T& v) {
+ [[nodiscard]] bool insert(const T& v) {
if (!heap.append(v))
return false;
siftUp(heap.length() - 1);