diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-05 10:41:52 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-08 13:50:12 +0100 |
commit | 292ece5fde96a67a44830cb2c05463a06de0b373 (patch) | |
tree | bb897ea5b84dec63e322d7a342f7bf5eaf323c9c /xpcom/ds/IncrementalTokenizer.h | |
parent | ccc8c3b988375858400e8cbb5cd3ed665ece7aa4 (diff) | |
download | uxp-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.h | 3 |
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. |