summaryrefslogtreecommitdiff
path: root/dom/html
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/html
parent7f99af410107ac25fd78c223dd2cbe5995f29656 (diff)
downloaduxp-cd8c5dae0cb5c23699171cf787cc70d720eec14c.tar.gz
Issue #2342: Use [[nodiscard]] in /dom
Diffstat (limited to 'dom/html')
-rw-r--r--dom/html/nsTextEditorState.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/html/nsTextEditorState.h b/dom/html/nsTextEditorState.h
index 5abc88d44e..a5d2482387 100644
--- a/dom/html/nsTextEditorState.h
+++ b/dom/html/nsTextEditorState.h
@@ -154,7 +154,7 @@ public:
// Whether the value change should be notified to the frame/contet nor not.
eSetValue_Notify = 1 << 2
};
- MOZ_MUST_USE bool SetValue(const nsAString& aValue, uint32_t aFlags);
+ [[nodiscard]] bool SetValue(const nsAString& aValue, uint32_t aFlags);
void GetValue(nsAString& aValue, bool aIgnoreWrap) const;
bool HasNonEmptyValue();
// The following methods are for textarea element to use whether default