mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Fix warnings about override and final
This commit is contained in:
@@ -64,7 +64,7 @@ public:
|
|||||||
|
|
||||||
// Decorator command that performs the given command and then outputs a status
|
// Decorator command that performs the given command and then outputs a status
|
||||||
// message according to the result
|
// message according to the result
|
||||||
class ApplyAndSendResponse final : public DecoratedCommand
|
class ApplyAndSendResponse : public DecoratedCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ApplyAndSendResponse(const OldStyleCommandPointer &cmd, std::unique_ptr<CommandOutputTargets> &target);
|
ApplyAndSendResponse(const OldStyleCommandPointer &cmd, std::unique_ptr<CommandOutputTargets> &target);
|
||||||
@@ -108,18 +108,18 @@ public:
|
|||||||
wxString GetName();
|
wxString GetName();
|
||||||
|
|
||||||
/// Get the signature of the command
|
/// Get the signature of the command
|
||||||
CommandSignature &GetSignature();
|
CommandSignature &GetSignature() override;
|
||||||
|
|
||||||
/// Attempt to one of the command's parameters to a particular value.
|
/// Attempt to one of the command's parameters to a particular value.
|
||||||
/// (Note: wxVariant is reference counted)
|
/// (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:
|
// Subclasses should override the following:
|
||||||
// =========================================
|
// =========================================
|
||||||
|
|
||||||
/// Actually carry out the command. Return true if successful and false
|
/// Actually carry out the command. Return true if successful and false
|
||||||
/// otherwise.
|
/// otherwise.
|
||||||
bool Apply() { return false;};// No longer supported.
|
bool Apply() override { return false;};// No longer supported.
|
||||||
bool Apply(const CommandContext &context) override;
|
bool Apply(const CommandContext &context) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user