summaryrefslogtreecommitdiff
path: root/xpcom/ds/nsObserverList.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpcom/ds/nsObserverList.h')
-rw-r--r--xpcom/ds/nsObserverList.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/ds/nsObserverList.h b/xpcom/ds/nsObserverList.h
index 4c43380cc7..e590450a71 100644
--- a/xpcom/ds/nsObserverList.h
+++ b/xpcom/ds/nsObserverList.h
@@ -55,8 +55,8 @@ public:
MOZ_COUNT_DTOR(nsObserverList);
}
- MOZ_MUST_USE nsresult AddObserver(nsIObserver* aObserver, bool aOwnsWeak);
- MOZ_MUST_USE nsresult RemoveObserver(nsIObserver* aObserver);
+ [[nodiscard]] nsresult AddObserver(nsIObserver* aObserver, bool aOwnsWeak);
+ [[nodiscard]] nsresult RemoveObserver(nsIObserver* aObserver);
void NotifyObservers(nsISupports* aSubject,
const char* aTopic,