diff options
Diffstat (limited to 'xpcom/glue/nsTHashtable.h')
-rw-r--r-- | xpcom/glue/nsTHashtable.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xpcom/glue/nsTHashtable.h b/xpcom/glue/nsTHashtable.h index b382da0bcc..dd78476ece 100644 --- a/xpcom/glue/nsTHashtable.h +++ b/xpcom/glue/nsTHashtable.h @@ -154,8 +154,7 @@ public: return static_cast<EntryType*>(mTable.Add(EntryType::KeyToPointer(aKey))); } - MOZ_MUST_USE - EntryType* PutEntry(KeyType aKey, const fallible_t&) + [[nodiscard]] EntryType* PutEntry(KeyType aKey, const fallible_t&) { return static_cast<EntryType*>(mTable.Add(EntryType::KeyToPointer(aKey), mozilla::fallible)); @@ -520,8 +519,7 @@ public: return reinterpret_cast<EntryType*>(Base::PutEntry(aKey)); } - MOZ_MUST_USE - EntryType* PutEntry(T* aKey, const mozilla::fallible_t&) + [[nodiscard]] EntryType* PutEntry(T* aKey, const mozilla::fallible_t&) { return reinterpret_cast<EntryType*>( Base::PutEntry(aKey, mozilla::fallible)); |