summaryrefslogtreecommitdiff
path: root/dom/base/nsTextFragment.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-03 00:17:31 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-08 13:44:49 +0100
commitcd8c5dae0cb5c23699171cf787cc70d720eec14c (patch)
treec08634f16ab478721562beb2e8b783e1a8d24215 /dom/base/nsTextFragment.h
parent7f99af410107ac25fd78c223dd2cbe5995f29656 (diff)
downloaduxp-cd8c5dae0cb5c23699171cf787cc70d720eec14c.tar.gz
Issue #2342: Use [[nodiscard]] in /dom
Diffstat (limited to 'dom/base/nsTextFragment.h')
-rw-r--r--dom/base/nsTextFragment.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/base/nsTextFragment.h b/dom/base/nsTextFragment.h
index 725d9c6753..2845a14e1a 100644
--- a/dom/base/nsTextFragment.h
+++ b/dom/base/nsTextFragment.h
@@ -136,7 +136,7 @@ public:
* Append the contents of this string fragment to aString
* @return false if an out of memory condition is detected, true otherwise
*/
- MOZ_MUST_USE
+ [[nodiscard]]
bool AppendTo(nsAString& aString,
const mozilla::fallible_t& aFallible) const {
if (mState.mIs2b) {
@@ -170,7 +170,7 @@ public:
* @param aLength the length of the substring
* @return false if an out of memory condition is detected, true otherwise
*/
- MOZ_MUST_USE
+ [[nodiscard]]
bool AppendTo(nsAString& aString, int32_t aOffset, int32_t aLength,
const mozilla::fallible_t& aFallible) const
{