Add missing OVERRIDE modifier to Command::clone() overrides

It fixes some invalid clone() overrides without const modifier.
This commit is contained in:
David Capello 2014-03-29 17:08:40 -03:00
parent b16bf981d0
commit 44d3e228fd
70 changed files with 87 additions and 84 deletions

View File

@ -32,7 +32,7 @@ using namespace ui;
class AboutCommand : public Command {
public:
AboutCommand();
Command* clone() const { return new AboutCommand(*this); }
Command* clone() const OVERRIDE { return new AboutCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -38,7 +38,7 @@ using namespace ui;
class AdvancedModeCommand : public Command {
public:
AdvancedModeCommand();
Command* clone() const { return new AdvancedModeCommand(*this); }
Command* clone() const OVERRIDE { return new AdvancedModeCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -37,7 +37,7 @@ namespace app {
class BackgroundFromLayerCommand : public Command {
public:
BackgroundFromLayerCommand();
Command* clone() const { return new BackgroundFromLayerCommand(*this); }
Command* clone() const OVERRIDE { return new BackgroundFromLayerCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -24,13 +24,14 @@
#include "app/commands/commands.h"
#include "app/context.h"
#include "base/compiler_specific.h"
namespace app {
class CancelCommand : public Command {
public:
CancelCommand();
Command* clone() { return new CancelCommand(*this); }
Command* clone() const OVERRIDE { return new CancelCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -149,7 +149,7 @@ class CanvasSizeCommand : public Command {
public:
CanvasSizeCommand();
Command* clone() const { return new CanvasSizeCommand(*this); }
Command* clone() const OVERRIDE { return new CanvasSizeCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -45,7 +45,7 @@ using namespace ui;
class CelPropertiesCommand : public Command {
public:
CelPropertiesCommand();
Command* clone() const { return new CelPropertiesCommand(*this); }
Command* clone() const OVERRIDE { return new CelPropertiesCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -41,7 +41,7 @@ class ChangePixelFormatCommand : public Command {
DitheringMethod m_dithering;
public:
ChangePixelFormatCommand();
Command* clone() const { return new ChangePixelFormatCommand(*this); }
Command* clone() const OVERRIDE { return new ChangePixelFormatCommand(*this); }
protected:
void onLoadParams(Params* params);

View File

@ -40,7 +40,7 @@ namespace app {
class ClearCommand : public Command {
public:
ClearCommand();
Command* clone() const { return new ClearCommand(*this); }
Command* clone() const OVERRIDE { return new ClearCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -52,7 +52,7 @@ public:
{
}
Command* clone() const { return new CloseFileCommand(*this); }
Command* clone() const OVERRIDE { return new CloseFileCommand(*this); }
protected:
@ -99,7 +99,7 @@ public:
{
}
Command* clone() const { return new CloseAllFilesCommand(*this); }
Command* clone() const OVERRIDE { return new CloseAllFilesCommand(*this); }
protected:

View File

@ -60,7 +60,7 @@ static void on_exit_delete_this_widget()
class ConfigureTools : public Command {
public:
ConfigureTools();
Command* clone() const { return new ConfigureTools(*this); }
Command* clone() const OVERRIDE { return new ConfigureTools(*this); }
protected:
void onExecute(Context* context);

View File

@ -34,7 +34,7 @@ namespace app {
class CopyCommand : public Command {
public:
CopyCommand();
Command* clone() const { return new CopyCommand(*this); }
Command* clone() const OVERRIDE { return new CopyCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -33,7 +33,7 @@ namespace app {
class CopyCelCommand : public Command {
public:
CopyCelCommand();
Command* clone() const { return new CopyCelCommand(*this); }
Command* clone() const OVERRIDE { return new CopyCelCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -40,7 +40,7 @@ namespace app {
class CropSpriteCommand : public Command {
public:
CropSpriteCommand();
Command* clone() const { return new CropSpriteCommand(*this); }
Command* clone() const OVERRIDE { return new CropSpriteCommand(*this); }
protected:
bool onEnabled(Context* context);
@ -81,7 +81,7 @@ void CropSpriteCommand::onExecute(Context* context)
class AutocropSpriteCommand : public Command {
public:
AutocropSpriteCommand();
Command* clone() const { return new AutocropSpriteCommand(*this); }
Command* clone() const OVERRIDE { return new AutocropSpriteCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -34,7 +34,7 @@ namespace app {
class CutCommand : public Command {
public:
CutCommand();
Command* clone() const { return new CutCommand(*this); }
Command* clone() const OVERRIDE { return new CutCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -33,7 +33,7 @@ namespace app {
class DeselectMaskCommand : public Command {
public:
DeselectMaskCommand();
Command* clone() const { return new DeselectMaskCommand(*this); }
Command* clone() const OVERRIDE { return new DeselectMaskCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -41,7 +41,7 @@ namespace app {
class DuplicateLayerCommand : public Command {
public:
DuplicateLayerCommand();
Command* clone() const { return new DuplicateLayerCommand(*this); }
Command* clone() const OVERRIDE { return new DuplicateLayerCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -41,7 +41,7 @@ using namespace ui;
class DuplicateSpriteCommand : public Command {
public:
DuplicateSpriteCommand();
Command* clone() { return new DuplicateSpriteCommand(*this); }
Command* clone() const OVERRIDE { return new DuplicateSpriteCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -32,7 +32,7 @@ namespace app {
class ExitCommand : public Command {
public:
ExitCommand();
Command* clone() { return new ExitCommand(*this); }
Command* clone() const OVERRIDE { return new ExitCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -50,7 +50,7 @@ class EyedropperCommand : public Command {
public:
EyedropperCommand();
Command* clone() const { return new EyedropperCommand(*this); }
Command* clone() const OVERRIDE { return new EyedropperCommand(*this); }
protected:
void onLoadParams(Params* params);

View File

@ -35,7 +35,7 @@ namespace app {
class FlattenLayersCommand : public Command {
public:
FlattenLayersCommand();
Command* clone() { return new FlattenLayersCommand(*this); }
Command* clone() const OVERRIDE { return new FlattenLayersCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -20,6 +20,7 @@
#define APP_COMMANDS_CMD_FLIP_H_INCLUDED
#include "app/commands/command.h"
#include "base/compiler_specific.h"
#include "raster/algorithm/flip_type.h"
namespace app {
@ -27,7 +28,7 @@ namespace app {
class FlipCommand : public Command {
public:
FlipCommand();
Command* clone() const { return new FlipCommand(*this); }
Command* clone() const OVERRIDE { return new FlipCommand(*this); }
raster::algorithm::FlipType getFlipType() const { return m_flipType; }

View File

@ -41,7 +41,7 @@ using namespace ui;
class FramePropertiesCommand : public Command {
public:
FramePropertiesCommand();
Command* clone() { return new FramePropertiesCommand(*this); }
Command* clone() const OVERRIDE { return new FramePropertiesCommand(*this); }
protected:
void onLoadParams(Params* params);

View File

@ -62,7 +62,7 @@ public:
GotoFirstFrameCommand()
: GotoCommand("GotoFirstFrame",
"Goto First Frame") { }
Command* clone() { return new GotoFirstFrameCommand(*this); }
Command* clone() const OVERRIDE { return new GotoFirstFrameCommand(*this); }
protected:
FrameNumber onGetFrame(Editor* editor) OVERRIDE {
@ -79,7 +79,7 @@ public:
GotoPreviousFrameCommand()
: GotoCommand("GotoPreviousFrame",
"Goto Previous Frame") { }
Command* clone() { return new GotoPreviousFrameCommand(*this); }
Command* clone() const OVERRIDE { return new GotoPreviousFrameCommand(*this); }
protected:
FrameNumber onGetFrame(Editor* editor) OVERRIDE {
@ -100,7 +100,7 @@ class GotoNextFrameCommand : public GotoCommand
public:
GotoNextFrameCommand() : GotoCommand("GotoNextFrame",
"Goto Next Frame") { }
Command* clone() { return new GotoNextFrameCommand(*this); }
Command* clone() const OVERRIDE { return new GotoNextFrameCommand(*this); }
protected:
FrameNumber onGetFrame(Editor* editor) OVERRIDE {
@ -119,7 +119,7 @@ class GotoLastFrameCommand : public GotoCommand
public:
GotoLastFrameCommand() : GotoCommand("GotoLastFrame",
"Goto Last Frame") { }
Command* clone() { return new GotoLastFrameCommand(*this); }
Command* clone() const OVERRIDE { return new GotoLastFrameCommand(*this); }
protected:
FrameNumber onGetFrame(Editor* editor) OVERRIDE {
@ -136,7 +136,7 @@ public:
GotoFrameCommand() : GotoCommand("GotoFrame",
"Goto Frame")
, m_frame(0) { }
Command* clone() { return new GotoFrameCommand(*this); }
Command* clone() const OVERRIDE { return new GotoFrameCommand(*this); }
protected:
void onLoadParams(Params* params) OVERRIDE

View File

@ -50,7 +50,7 @@ protected:
class GotoPreviousLayerCommand : public GotoCommand {
public:
GotoPreviousLayerCommand();
Command* clone() { return new GotoPreviousLayerCommand(*this); }
Command* clone() const OVERRIDE { return new GotoPreviousLayerCommand(*this); }
protected:
bool onEnabled(Context* context);
@ -92,7 +92,7 @@ void GotoPreviousLayerCommand::onExecute(Context* context)
class GotoNextLayerCommand : public GotoCommand {
public:
GotoNextLayerCommand();
Command* clone() { return new GotoNextLayerCommand(*this); }
Command* clone() const OVERRIDE { return new GotoNextLayerCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -31,7 +31,7 @@ namespace app {
class GotoNextTabCommand : public Command {
public:
GotoNextTabCommand();
Command* clone() { return new GotoNextTabCommand(*this); }
Command* clone() const OVERRIDE { return new GotoNextTabCommand(*this); }
protected:
void onExecute(Context* context);
@ -52,7 +52,7 @@ void GotoNextTabCommand::onExecute(Context* context)
class GotoPreviousTabCommand : public Command {
public:
GotoPreviousTabCommand();
Command* clone() { return new GotoPreviousTabCommand(*this); }
Command* clone() const OVERRIDE { return new GotoPreviousTabCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -48,7 +48,7 @@ public:
{
}
Command* clone() const { return new ShowGridCommand(*this); }
Command* clone() const OVERRIDE { return new ShowGridCommand(*this); }
protected:
bool onChecked(Context* context)
@ -75,7 +75,7 @@ public:
{
}
Command* clone() const { return new SnapToGridCommand(*this); }
Command* clone() const OVERRIDE { return new SnapToGridCommand(*this); }
protected:
bool onChecked(Context* context)
@ -102,7 +102,7 @@ protected:
class GridSettingsCommand : public Command {
public:
GridSettingsCommand();
Command* clone() const { return new GridSettingsCommand(*this); }
Command* clone() const OVERRIDE { return new GridSettingsCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -348,7 +348,7 @@ private:
class ImportSpriteSheetCommand : public Command {
public:
ImportSpriteSheetCommand();
Command* clone() { return new ImportSpriteSheetCommand(*this); }
Command* clone() const OVERRIDE { return new ImportSpriteSheetCommand(*this); }
protected:
virtual void onExecute(Context* context) OVERRIDE;

View File

@ -37,7 +37,7 @@ namespace app {
class InvertMaskCommand : public Command {
public:
InvertMaskCommand();
Command* clone() { return new InvertMaskCommand(*this); }
Command* clone() const OVERRIDE { return new InvertMaskCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -32,7 +32,7 @@ namespace app {
class LaunchCommand : public Command {
public:
LaunchCommand();
Command* clone() const { return new LaunchCommand(*this); }
Command* clone() const OVERRIDE { return new LaunchCommand(*this); }
protected:
void onLoadParams(Params* params) OVERRIDE;

View File

@ -34,7 +34,7 @@ namespace app {
class LayerFromBackgroundCommand : public Command {
public:
LayerFromBackgroundCommand();
Command* clone() { return new LayerFromBackgroundCommand(*this); }
Command* clone() const OVERRIDE { return new LayerFromBackgroundCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -37,7 +37,7 @@ using namespace ui;
class LayerPropertiesCommand : public Command {
public:
LayerPropertiesCommand();
Command* clone() { return new LayerPropertiesCommand(*this); }
Command* clone() const OVERRIDE { return new LayerPropertiesCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -39,7 +39,7 @@ class LoadMaskCommand : public Command {
public:
LoadMaskCommand();
Command* clone() const { return new LoadMaskCommand(*this); }
Command* clone() const OVERRIDE { return new LoadMaskCommand(*this); }
protected:
void onLoadParams(Params* params);

View File

@ -40,7 +40,7 @@ using namespace ui;
class LoadPaletteCommand : public Command {
public:
LoadPaletteCommand();
Command* clone() { return new LoadPaletteCommand(*this); }
Command* clone() const OVERRIDE { return new LoadPaletteCommand(*this); }
protected:
void onExecute(Context* context) OVERRIDE;

View File

@ -33,7 +33,7 @@ namespace app {
class MaskAllCommand : public Command {
public:
MaskAllCommand();
Command* clone() { return new MaskAllCommand(*this); }
Command* clone() const OVERRIDE { return new MaskAllCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -54,7 +54,7 @@ using namespace ui;
class MaskByColorCommand : public Command {
public:
MaskByColorCommand();
Command* clone() { return new MaskByColorCommand(*this); }
Command* clone() const OVERRIDE { return new MaskByColorCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -46,7 +46,7 @@ namespace app {
class MergeDownLayerCommand : public Command {
public:
MergeDownLayerCommand();
Command* clone() { return new MergeDownLayerCommand(*this); }
Command* clone() const OVERRIDE { return new MergeDownLayerCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -33,7 +33,7 @@ namespace app {
class MoveCelCommand : public Command {
public:
MoveCelCommand();
Command* clone() const { return new MoveCelCommand(*this); }
Command* clone() const OVERRIDE { return new MoveCelCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -55,7 +55,7 @@ namespace app {
class NewFileCommand : public Command {
public:
NewFileCommand();
Command* clone() { return new NewFileCommand(*this); }
Command* clone() const OVERRIDE { return new NewFileCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -43,7 +43,7 @@ namespace app {
class NewFrameCommand : public Command {
public:
NewFrameCommand();
Command* clone() { return new NewFrameCommand(*this); }
Command* clone() const OVERRIDE { return new NewFrameCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -44,7 +44,7 @@ using namespace ui;
class NewLayerCommand : public Command {
public:
NewLayerCommand();
Command* clone() { return new NewLayerCommand(*this); }
Command* clone() const OVERRIDE { return new NewLayerCommand(*this); }
protected:
void onLoadParams(Params* params);

View File

@ -41,7 +41,7 @@ using namespace ui;
class NewLayerSetCommand : public Command {
public:
NewLayerSetCommand();
Command* clone() { return new NewLayerSetCommand(*this); }
Command* clone() const OVERRIDE { return new NewLayerSetCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -48,7 +48,7 @@ namespace app {
class OpenFileCommand : public Command {
public:
OpenFileCommand();
Command* clone() { return new OpenFileCommand(*this); }
Command* clone() const OVERRIDE { return new OpenFileCommand(*this); }
protected:
void onLoadParams(Params* params);

View File

@ -32,7 +32,7 @@ namespace app {
class OpenInFolderCommand : public Command {
public:
OpenInFolderCommand();
Command* clone() { return new OpenInFolderCommand(*this); }
Command* clone() const OVERRIDE { return new OpenInFolderCommand(*this); }
protected:
bool onEnabled(Context* context) OVERRIDE;

View File

@ -32,7 +32,7 @@ namespace app {
class OpenWithAppCommand : public Command {
public:
OpenWithAppCommand();
Command* clone() { return new OpenWithAppCommand(*this); }
Command* clone() const OVERRIDE { return new OpenWithAppCommand(*this); }
protected:
bool onEnabled(Context* context) OVERRIDE;

View File

@ -44,7 +44,7 @@ using namespace ui;
class OptionsCommand : public Command {
public:
OptionsCommand();
Command* clone() { return new OptionsCommand(*this); }
Command* clone() const OVERRIDE { return new OptionsCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -146,7 +146,7 @@ static PaletteEntryEditor* g_window = NULL;
class PaletteEditorCommand : public Command {
public:
PaletteEditorCommand();
Command* clone() { return new PaletteEditorCommand(*this); }
Command* clone() const OVERRIDE { return new PaletteEditorCommand(*this); }
protected:
void onLoadParams(Params* params) OVERRIDE;

View File

@ -23,6 +23,7 @@
#include "app/commands/command.h"
#include "app/context.h"
#include "app/util/clipboard.h"
#include "base/compiler_specific.h"
#include "raster/layer.h"
#include "raster/sprite.h"
@ -31,7 +32,7 @@ namespace app {
class PasteCommand : public Command {
public:
PasteCommand();
Command* clone() { return new PasteCommand(*this); }
Command* clone() const OVERRIDE { return new PasteCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -43,7 +43,7 @@ namespace app {
class PlayAnimationCommand : public Command {
public:
PlayAnimationCommand();
Command* clone() { return new PlayAnimationCommand(*this); }
Command* clone() const OVERRIDE { return new PlayAnimationCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -55,7 +55,7 @@ using namespace filters;
class PreviewCommand : public Command {
public:
PreviewCommand();
Command* clone() { return new PreviewCommand(*this); }
Command* clone() const OVERRIDE { return new PreviewCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -40,7 +40,7 @@ namespace app {
class RefreshCommand : public Command {
public:
RefreshCommand();
Command* clone() { return new RefreshCommand(*this); }
Command* clone() const OVERRIDE { return new RefreshCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -37,7 +37,7 @@ namespace app {
class RemoveCelCommand : public Command {
public:
RemoveCelCommand();
Command* clone() { return new RemoveCelCommand(*this); }
Command* clone() const OVERRIDE { return new RemoveCelCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -36,7 +36,7 @@ namespace app {
class RemoveFrameCommand : public Command {
public:
RemoveFrameCommand();
Command* clone() { return new RemoveFrameCommand(*this); }
Command* clone() const OVERRIDE { return new RemoveFrameCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -38,7 +38,7 @@ namespace app {
class RemoveLayerCommand : public Command {
public:
RemoveLayerCommand();
Command* clone() { return new RemoveLayerCommand(*this); }
Command* clone() const OVERRIDE { return new RemoveLayerCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -33,7 +33,7 @@ namespace app {
class RepeatLastExportCommand : public Command {
public:
RepeatLastExportCommand();
Command* clone() { return new RepeatLastExportCommand(*this); }
Command* clone() const OVERRIDE { return new RepeatLastExportCommand(*this); }
protected:
virtual bool onEnabled(Context* context) OVERRIDE;

View File

@ -33,7 +33,7 @@ namespace app {
class ReselectMaskCommand : public Command {
public:
ReselectMaskCommand();
Command* clone() { return new ReselectMaskCommand(*this); }
Command* clone() const OVERRIDE { return new ReselectMaskCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -45,7 +45,7 @@ class RotateCanvasCommand : public Command {
public:
RotateCanvasCommand();
Command* clone() { return new RotateCanvasCommand(*this); }
Command* clone() const OVERRIDE { return new RotateCanvasCommand(*this); }
protected:
void onLoadParams(Params* params);

View File

@ -207,7 +207,7 @@ protected:
class SaveFileCommand : public SaveFileBaseCommand {
public:
SaveFileCommand();
Command* clone() { return new SaveFileCommand(*this); }
Command* clone() const OVERRIDE { return new SaveFileCommand(*this); }
protected:
void onExecute(Context* context);
@ -248,7 +248,7 @@ void SaveFileCommand::onExecute(Context* context)
class SaveFileAsCommand : public SaveFileBaseCommand {
public:
SaveFileAsCommand();
Command* clone() { return new SaveFileAsCommand(*this); }
Command* clone() const OVERRIDE { return new SaveFileAsCommand(*this); }
protected:
void onExecute(Context* context);
@ -268,7 +268,7 @@ void SaveFileAsCommand::onExecute(Context* context)
class SaveFileCopyAsCommand : public SaveFileBaseCommand {
public:
SaveFileCopyAsCommand();
Command* clone() { return new SaveFileCopyAsCommand(*this); }
Command* clone() const OVERRIDE { return new SaveFileCopyAsCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -35,7 +35,7 @@ namespace app {
class SaveMaskCommand : public Command {
public:
SaveMaskCommand();
Command* clone() { return new SaveMaskCommand(*this); }
Command* clone() const OVERRIDE { return new SaveMaskCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -36,7 +36,7 @@ using namespace ui;
class SavePaletteCommand : public Command {
public:
SavePaletteCommand();
Command* clone() { return new SavePaletteCommand(*this); }
Command* clone() const OVERRIDE { return new SavePaletteCommand(*this); }
protected:
void onExecute(Context* context) OVERRIDE;

View File

@ -46,7 +46,7 @@ public:
};
ScrollCommand();
Command* clone() { return new ScrollCommand(*this); }
Command* clone() const OVERRIDE { return new ScrollCommand(*this); }
protected:
void onLoadParams(Params* params);

View File

@ -31,7 +31,7 @@ namespace app {
class MakeUniqueEditorCommand : public Command {
public:
MakeUniqueEditorCommand();
Command* clone() { return new MakeUniqueEditorCommand(*this); }
Command* clone() const OVERRIDE { return new MakeUniqueEditorCommand(*this); }
protected:
void onExecute(Context* context);
@ -54,7 +54,7 @@ void MakeUniqueEditorCommand::onExecute(Context* context)
class SplitEditorHorizontallyCommand : public Command {
public:
SplitEditorHorizontallyCommand();
Command* clone() { return new SplitEditorHorizontallyCommand(*this); }
Command* clone() const OVERRIDE { return new SplitEditorHorizontallyCommand(*this); }
protected:
void onExecute(Context* context);
@ -77,7 +77,7 @@ void SplitEditorHorizontallyCommand::onExecute(Context* context)
class SplitEditorVerticallyCommand : public Command {
public:
SplitEditorVerticallyCommand();
Command* clone() { return new SplitEditorVerticallyCommand(*this); }
Command* clone() const OVERRIDE { return new SplitEditorVerticallyCommand(*this); }
protected:
void onExecute(Context* context);

View File

@ -44,7 +44,7 @@ using namespace ui;
class SpritePropertiesCommand : public Command {
public:
SpritePropertiesCommand();
Command* clone() { return new SpritePropertiesCommand(*this); }
Command* clone() const OVERRIDE { return new SpritePropertiesCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -162,7 +162,7 @@ protected:
class SpriteSizeCommand : public Command {
public:
SpriteSizeCommand();
Command* clone() { return new SpriteSizeCommand(*this); }
Command* clone() const OVERRIDE { return new SpriteSizeCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -34,7 +34,7 @@ namespace app {
class TimelineCommand : public Command {
public:
TimelineCommand();
Command* clone() { return new TimelineCommand(*this); }
Command* clone() const OVERRIDE { return new TimelineCommand(*this); }
protected:
void onLoadParams(Params* params) OVERRIDE;

View File

@ -40,7 +40,7 @@ public:
enum Type { Undo, Redo };
UndoCommand(Type type);
Command* clone() { return new UndoCommand(*this); }
Command* clone() const OVERRIDE { return new UndoCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -89,7 +89,7 @@ private:
class ColorCurveCommand : public Command {
public:
ColorCurveCommand();
Command* clone() const { return new ColorCurveCommand(*this); }
Command* clone() const OVERRIDE { return new ColorCurveCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -156,7 +156,7 @@ private:
class ConvolutionMatrixCommand : public Command {
public:
ConvolutionMatrixCommand();
Command* clone() const { return new ConvolutionMatrixCommand(*this); }
Command* clone() const OVERRIDE { return new ConvolutionMatrixCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -94,7 +94,7 @@ class DespeckleCommand : public Command
{
public:
DespeckleCommand();
Command* clone() const { return new DespeckleCommand(*this); }
Command* clone() const OVERRIDE { return new DespeckleCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -60,7 +60,7 @@ private:
class InvertColorCommand : public Command {
public:
InvertColorCommand();
Command* clone() const { return new InvertColorCommand(*this); }
Command* clone() const OVERRIDE { return new InvertColorCommand(*this); }
protected:
bool onEnabled(Context* context);

View File

@ -121,7 +121,7 @@ private:
class ReplaceColorCommand : public Command {
public:
ReplaceColorCommand();
Command* clone() const { return new ReplaceColorCommand(*this); }
Command* clone() const OVERRIDE { return new ReplaceColorCommand(*this); }
protected:
bool onEnabled(Context* context);