Bug 1319340 - part7: Fix some warnings in nsComposerCommands.h r?m_kato
MozReview-Commit-ID: A0KnOCCWqYZ
--- 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)