mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Cleanup: use override specifier everywhere, and enable gcc warning to check for it.
This commit is contained in:
@@ -19,8 +19,8 @@ DECLARE_POINTER_TYPE(ScriptRegex);
|
||||
/// A regular expression for use in a script
|
||||
class ScriptRegex : public ScriptValue, public Regex {
|
||||
public:
|
||||
virtual ScriptType type() const { return SCRIPT_REGEX; }
|
||||
virtual String typeName() const { return _("regex"); }
|
||||
ScriptType type() const override { return SCRIPT_REGEX; }
|
||||
String typeName() const override { return _("regex"); }
|
||||
|
||||
ScriptRegex(const String& code) {
|
||||
assign(code);
|
||||
|
||||
@@ -107,6 +107,6 @@ private:
|
||||
|
||||
protected:
|
||||
/// Respond to actions by updating scripts
|
||||
void onAction(const Action&, bool undone);
|
||||
void onAction(const Action&, bool undone) override;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user