summaryrefslogtreecommitdiff
path: root/xpcom/ds/nsObserverService.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-05 10:41:52 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-08 13:50:12 +0100
commit292ece5fde96a67a44830cb2c05463a06de0b373 (patch)
treebb897ea5b84dec63e322d7a342f7bf5eaf323c9c /xpcom/ds/nsObserverService.h
parentccc8c3b988375858400e8cbb5cd3ed665ece7aa4 (diff)
downloaduxp-292ece5fde96a67a44830cb2c05463a06de0b373.tar.gz
Issue #2342: Use [[nodiscard]] in /xpcom and xpidl parser
Diffstat (limited to 'xpcom/ds/nsObserverService.h')
-rw-r--r--xpcom/ds/nsObserverService.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/ds/nsObserverService.h b/xpcom/ds/nsObserverService.h
index 48c6dd90c9..8a9ee692cc 100644
--- a/xpcom/ds/nsObserverService.h
+++ b/xpcom/ds/nsObserverService.h
@@ -33,8 +33,8 @@ public:
void Shutdown();
- static MOZ_MUST_USE nsresult Create(nsISupports* aOuter, const nsIID& aIID,
- void** aInstancePtr);
+ [[nodiscard]] static nsresult Create(nsISupports* aOuter, const nsIID& aIID,
+ void** aInstancePtr);
// Unmark any strongly held observers implemented in JS so the cycle
// collector will not traverse them.