diff options
Diffstat (limited to 'uriloader/base/nsDocLoader.h')
-rw-r--r-- | uriloader/base/nsDocLoader.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/uriloader/base/nsDocLoader.h b/uriloader/base/nsDocLoader.h index b469b8e079..1c50df24b1 100644 --- a/uriloader/base/nsDocLoader.h +++ b/uriloader/base/nsDocLoader.h @@ -58,7 +58,7 @@ public: nsDocLoader(); - virtual MOZ_MUST_USE nsresult Init(); + [[nodiscard]] virtual nsresult Init(); static already_AddRefed<nsDocLoader> GetAsDocLoader(nsISupports* aSupports); // Needed to deal with ambiguous inheritance from nsISupports... @@ -67,7 +67,7 @@ public: } // Add aDocLoader as a child to the docloader service. - static MOZ_MUST_USE nsresult AddDocLoaderAsChildOfRoot(nsDocLoader* aDocLoader); + [[nodiscard]] static nsresult AddDocLoaderAsChildOfRoot(nsDocLoader* aDocLoader); NS_DECL_ISUPPORTS NS_DECL_NSIDOCUMENTLOADER @@ -89,10 +89,10 @@ public: // Remove aChild from our childlist. This nulls out the child's mParent // pointer. - MOZ_MUST_USE nsresult RemoveChildLoader(nsDocLoader *aChild); + [[nodiscard]] nsresult RemoveChildLoader(nsDocLoader *aChild); // Add aChild to our child list. This will set aChild's mParent pointer to // |this|. - MOZ_MUST_USE nsresult AddChildLoader(nsDocLoader* aChild); + [[nodiscard]] nsresult AddChildLoader(nsDocLoader* aChild); nsDocLoader* GetParent() const { return mParent; } struct nsListenerInfo { @@ -114,7 +114,7 @@ public: protected: virtual ~nsDocLoader(); - virtual MOZ_MUST_USE nsresult SetDocLoaderParent(nsDocLoader * aLoader); + [[nodiscard]] virtual nsresult SetDocLoaderParent(nsDocLoader * aLoader); bool IsBusy(); @@ -166,7 +166,7 @@ protected: nsIURI *aUri, uint32_t aFlags); - MOZ_MUST_USE bool RefreshAttempted(nsIWebProgress* aWebProgress, + [[nodiscard]] bool RefreshAttempted(nsIWebProgress* aWebProgress, nsIURI *aURI, int32_t aDelay, bool aSameURI); @@ -189,7 +189,7 @@ protected: // Inform a parent docloader that aChild is about to call its onload // handler. - MOZ_MUST_USE bool ChildEnteringOnload(nsIDocumentLoader* aChild) { + [[nodiscard]] bool ChildEnteringOnload(nsIDocumentLoader* aChild) { // It's ok if we're already in the list -- we'll just be in there twice // and then the RemoveObject calls from ChildDoneWithOnload will remove // us. |