diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-05 10:41:52 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-08 13:50:12 +0100 |
commit | 292ece5fde96a67a44830cb2c05463a06de0b373 (patch) | |
tree | bb897ea5b84dec63e322d7a342f7bf5eaf323c9c /xpcom/ds/nsObserverService.h | |
parent | ccc8c3b988375858400e8cbb5cd3ed665ece7aa4 (diff) | |
download | uxp-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.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. |