summaryrefslogtreecommitdiff
path: root/xpcom/ds/nsObserverService.h
diff options
context:
space:
mode:
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.