Cleanup: use override specifier everywhere, and enable gcc warning to check for it.

This commit is contained in:
Twan van Laarhoven
2020-05-16 00:23:18 +02:00
parent a7c47729c1
commit 5deaeeeb3e
113 changed files with 710 additions and 714 deletions
+2 -2
View File
@@ -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);