summaryrefslogtreecommitdiff
path: root/xpcom/string/nsTString.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpcom/string/nsTString.h')
-rw-r--r--xpcom/string/nsTString.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/string/nsTString.h b/xpcom/string/nsTString.h
index 7bd9396e84..411b238de1 100644
--- a/xpcom/string/nsTString.h
+++ b/xpcom/string/nsTString.h
@@ -394,10 +394,10 @@ public:
*/
void ReplaceSubstring(const self_type& aTarget, const self_type& aNewValue);
void ReplaceSubstring(const char_type* aTarget, const char_type* aNewValue);
- MOZ_MUST_USE bool ReplaceSubstring(const self_type& aTarget,
+ [[nodiscard]] bool ReplaceSubstring(const self_type& aTarget,
const self_type& aNewValue,
const fallible_t&);
- MOZ_MUST_USE bool ReplaceSubstring(const char_type* aTarget,
+ [[nodiscard]] bool ReplaceSubstring(const char_type* aTarget,
const char_type* aNewValue,
const fallible_t&);