From 94088640f116598a9b888f1b6502b6be6fc1e7e8 Mon Sep 17 00:00:00 2001 From: 0xtechnobabble <0xtechnobabble@protonmail.com> Date: Sun, 15 Mar 2020 23:33:38 +0200 Subject: [PATCH] LibJS: Specify overridden functions with 'override' --- Libraries/LibJS/AST.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibJS/AST.h b/Libraries/LibJS/AST.h index 8578a8530e3..575e501139a 100644 --- a/Libraries/LibJS/AST.h +++ b/Libraries/LibJS/AST.h @@ -56,7 +56,7 @@ public: class ErrorStatement final : public Statement { public: - Value execute(Interpreter&) const { return js_undefined(); } + Value execute(Interpreter&) const override { return js_undefined(); } const char* class_name() const override { return "ErrorStatement"; } }; @@ -147,7 +147,7 @@ public: class ErrorExpression final : public Expression { public: - Value execute(Interpreter&) const { return js_undefined(); } + Value execute(Interpreter&) const override { return js_undefined(); } const char* class_name() const override { return "ErrorExpression"; } };