diff options
Diffstat (limited to 'js/public/UbiNodeShortestPaths.h')
-rw-r--r-- | js/public/UbiNodeShortestPaths.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/public/UbiNodeShortestPaths.h b/js/public/UbiNodeShortestPaths.h index 18ed45a197..58c4568ff8 100644 --- a/js/public/UbiNodeShortestPaths.h +++ b/js/public/UbiNodeShortestPaths.h @@ -32,7 +32,7 @@ struct JS_PUBLIC_API(BackEdge) BackEdge() : predecessor_(), name_(nullptr) { } - MOZ_MUST_USE bool init(const Node& predecessor, Edge& edge) { + [[nodiscard]] bool init(const Node& predecessor, Edge& edge) { MOZ_ASSERT(!predecessor_); MOZ_ASSERT(!name_); @@ -289,7 +289,7 @@ struct JS_PUBLIC_API(ShortestPaths) * the given target, in which case `func` will not be invoked. */ template <class Func> - MOZ_MUST_USE bool forEachPath(const Node& target, Func func) { + [[nodiscard]] bool forEachPath(const Node& target, Func func) { MOZ_ASSERT(initialized()); MOZ_ASSERT(targets_.has(target)); |