Bug 1319340 - part7: Fix some warnings in nsComposerCommands.h r?m_kato draft
authorMasayuki Nakano <masayuki@d-toybox.com>
Fri, 04 Aug 2017 18:50:26 +0900
changeset 643896 9d16744fdb4a0a0220faafe829bd8adf7ced8093
parent 643895 192d7f5dfdb6e75d7460e6ff09267eda2c7a1dbd
child 643897 7fe70583f87e455c9a3db8b131e6f1cecd7ba813
push id73245
push usermasayuki@d-toybox.com
push dateThu, 10 Aug 2017 07:32:18 +0000
reviewersm_kato
bugs1319340
milestone57.0a1
Bug 1319340 - part7: Fix some warnings in nsComposerCommands.h r?m_kato MozReview-Commit-ID: A0KnOCCWqYZ
editor/composer/nsComposerCommands.h
--- a/editor/composer/nsComposerCommands.h
+++ b/editor/composer/nsComposerCommands.h
@@ -7,17 +7,16 @@
 #define nsComposerCommands_h_
 
 #include "nsIControllerCommand.h"
 #include "nsISupportsImpl.h"            // for NS_DECL_ISUPPORTS_INHERITED, etc
 #include "nscore.h"                     // for nsresult, NS_IMETHOD
 
 class nsIAtom;
 class nsICommandParams;
-class nsIEditor;
 class nsISupports;
 class nsString;
 
 namespace mozilla {
 class HTMLEditor;
 } // namespace mozilla
 
 // This is a virtual base class for commands registered with the composer controller.
@@ -206,17 +205,19 @@ protected:
 
 class nsHighlightColorStateCommand final : public nsMultiStateCommand
 {
 public:
                    nsHighlightColorStateCommand();
 
 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,
                             nsString& newState) override final;
 
 };
 
 class nsFontColorStateCommand final : public nsMultiStateCommand
@@ -260,17 +261,19 @@ protected:
 
 class nsAbsolutePositioningCommand final : public nsBaseStateUpdatingCommand
 {
 public:
   nsAbsolutePositioningCommand();
 
 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;
 };
 
 // composer commands
 
 NS_DECL_COMPOSER_COMMAND(nsCloseCommand)