From 56ab0da6a4ee62ef19fde6e7a61eda4422103282 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 11 Apr 2021 01:31:50 -0700 Subject: [PATCH] AK: Annotate Trie functions as [[nodiscard]] --- AK/Trie.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Trie.h b/AK/Trie.h index 3ed6d77cbf..92225afccb 100644 --- a/AK/Trie.h +++ b/AK/Trie.h @@ -201,7 +201,7 @@ public: ConstIterator begin() const { return ConstIterator(*this); } ConstIterator end() const { return ConstIterator::end(); } - bool is_empty() const { return m_children.is_empty(); } + [[nodiscard]] bool is_empty() const { return m_children.is_empty(); } void clear() { m_children.clear(); } BaseType deep_copy()