diff options
Diffstat (limited to 'xpcom/base/nsMemoryReporterManager.h')
-rw-r--r-- | xpcom/base/nsMemoryReporterManager.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xpcom/base/nsMemoryReporterManager.h b/xpcom/base/nsMemoryReporterManager.h index 8899d322d2..5d59b94ba9 100644 --- a/xpcom/base/nsMemoryReporterManager.h +++ b/xpcom/base/nsMemoryReporterManager.h @@ -182,12 +182,12 @@ public: SizeOfTabFns mSizeOfTabFns; private: - MOZ_MUST_USE nsresult + [[nodiscard]] nsresult RegisterReporterHelper(nsIMemoryReporter* aReporter, bool aForce, bool aStrongRef, bool aIsAsync); - MOZ_MUST_USE nsresult StartGettingReports(); - // No MOZ_MUST_USE here because ignoring the result is common and reasonable. + [[nodiscard]] nsresult StartGettingReports(); + // No [[nodiscard]] here because ignoring the result is common and reasonable. nsresult FinishReporting(); void DispatchReporter(nsIMemoryReporter* aReporter, bool aIsAsync, @@ -275,7 +275,7 @@ private: PendingReportersState* mPendingReportersState; PendingProcessesState* GetStateForGeneration(uint32_t aGeneration); - static MOZ_MUST_USE bool + [[nodiscard]] static bool StartChildReport(mozilla::dom::ContentParent* aChild, const PendingProcessesState* aState); }; |