summaryrefslogtreecommitdiff
path: root/xpcom/ds/IncrementalTokenizer.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-05 10:41:52 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-08 13:50:12 +0100
commit292ece5fde96a67a44830cb2c05463a06de0b373 (patch)
treebb897ea5b84dec63e322d7a342f7bf5eaf323c9c /xpcom/ds/IncrementalTokenizer.h
parentccc8c3b988375858400e8cbb5cd3ed665ece7aa4 (diff)
downloaduxp-292ece5fde96a67a44830cb2c05463a06de0b373.tar.gz
Issue #2342: Use [[nodiscard]] in /xpcom and xpidl parser
Diffstat (limited to 'xpcom/ds/IncrementalTokenizer.h')
-rw-r--r--xpcom/ds/IncrementalTokenizer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xpcom/ds/IncrementalTokenizer.h b/xpcom/ds/IncrementalTokenizer.h
index f72b6d7f98..f7f6729772 100644
--- a/xpcom/ds/IncrementalTokenizer.h
+++ b/xpcom/ds/IncrementalTokenizer.h
@@ -70,8 +70,7 @@ public:
* Returns false if there is not enough data to deterministically recognize
* tokens or when the last returned token was EOF.
*/
- MOZ_MUST_USE
- bool Next(Token& aToken);
+ [[nodiscard]] bool Next(Token& aToken);
/**
* Can only be called from inside the consumer callback.