summaryrefslogtreecommitdiff
path: root/xpcom/glue/nsRefPtrHashtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpcom/glue/nsRefPtrHashtable.h')
-rw-r--r--xpcom/glue/nsRefPtrHashtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/glue/nsRefPtrHashtable.h b/xpcom/glue/nsRefPtrHashtable.h
index ef527b6885..4f3816106e 100644
--- a/xpcom/glue/nsRefPtrHashtable.h
+++ b/xpcom/glue/nsRefPtrHashtable.h
@@ -53,8 +53,8 @@ public:
void Put(KeyType aKey, already_AddRefed<PtrType> aData);
- MOZ_MUST_USE bool Put(KeyType aKey, already_AddRefed<PtrType> aData,
- const mozilla::fallible_t&);
+ [[nodiscard]] bool Put(KeyType aKey, already_AddRefed<PtrType> aData,
+ const mozilla::fallible_t&);
// Overload Remove, rather than overriding it.
using base_type::Remove;