From 2978474960d9732c6738c3dcb45852bdf84f6db4 Mon Sep 17 00:00:00 2001 From: Masayuki Nakano Date: Fri, 4 Aug 2017 18:50:26 +0900 Subject: [PATCH] Bug 1319340 - part7: Fix some warnings in nsComposerCommands.h r=m_kato MozReview-Commit-ID: A0KnOCCWqYZ --HG-- extra : rebase_source : 35f0ad7b68e8c010eb98532e50bfc107abeefb7f --- editor/composer/nsComposerCommands.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/editor/composer/nsComposerCommands.h b/editor/composer/nsComposerCommands.h index b1ae2cd03428..75b71197cab4 100644 --- a/editor/composer/nsComposerCommands.h +++ b/editor/composer/nsComposerCommands.h @@ -12,7 +12,6 @@ class nsIAtom; class nsICommandParams; -class nsIEditor; class nsISupports; class nsString; @@ -211,7 +210,9 @@ public: protected: - NS_IMETHOD IsCommandEnabled(const char *aCommandName, nsISupports *aCommandRefCon, bool *_retval); + NS_IMETHOD IsCommandEnabled(const char* aCommandName, + nsISupports* aCommandRefCon, + bool* _retval) override final; virtual nsresult GetCurrentState(mozilla::HTMLEditor* aHTMLEditor, nsICommandParams* aParams) override final; virtual nsresult SetState(mozilla::HTMLEditor* aHTMLEditor, @@ -265,7 +266,9 @@ public: protected: - NS_IMETHOD IsCommandEnabled(const char *aCommandName, nsISupports *aCommandRefCon, bool *_retval); + NS_IMETHOD IsCommandEnabled(const char* aCommandName, + nsISupports* aCommandRefCon, + bool* _retval) override final; virtual nsresult GetCurrentState(mozilla::HTMLEditor* aHTMLEditor, nsICommandParams* aParams) override final; virtual nsresult ToggleState(mozilla::HTMLEditor* aHTMLEditor) override final;