From ae351abbc2ecccd37a6687551f87a103b1ac7967 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 8 Mar 2018 14:27:10 -0500 Subject: [PATCH] Fix warnings about override and final --- src/commands/Command.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/Command.h b/src/commands/Command.h index b49c08c79..9798321cb 100644 --- a/src/commands/Command.h +++ b/src/commands/Command.h @@ -64,7 +64,7 @@ public: // Decorator command that performs the given command and then outputs a status // message according to the result -class ApplyAndSendResponse final : public DecoratedCommand +class ApplyAndSendResponse : public DecoratedCommand { public: ApplyAndSendResponse(const OldStyleCommandPointer &cmd, std::unique_ptr &target); @@ -108,18 +108,18 @@ public: wxString GetName(); /// Get the signature of the command - CommandSignature &GetSignature(); + CommandSignature &GetSignature() override; /// Attempt to one of the command's parameters to a particular value. /// (Note: wxVariant is reference counted) - bool SetParameter(const wxString ¶mName, const wxVariant ¶mValue); + bool SetParameter(const wxString ¶mName, const wxVariant ¶mValue) override; // Subclasses should override the following: // ========================================= /// Actually carry out the command. Return true if successful and false /// otherwise. - bool Apply() { return false;};// No longer supported. + bool Apply() override { return false;};// No longer supported. bool Apply(const CommandContext &context) override; };