diff options
Diffstat (limited to 'xpcom/ds/nsObserverService.h')
-rw-r--r-- | xpcom/ds/nsObserverService.h | 4 |
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. |