From b4bfc3ed54dbddfb90e5956e7829b4e282842848 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 7 Sep 2020 20:51:17 +0200 Subject: [PATCH] Spreadsheet: Add "final" to JS objects and tweak declarations --- Applications/Spreadsheet/JSIntegration.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Applications/Spreadsheet/JSIntegration.h b/Applications/Spreadsheet/JSIntegration.h index ace3e3c8237..9bddb1e25e5 100644 --- a/Applications/Spreadsheet/JSIntegration.h +++ b/Applications/Spreadsheet/JSIntegration.h @@ -32,16 +32,16 @@ namespace Spreadsheet { -class SheetGlobalObject : public JS::GlobalObject { +class SheetGlobalObject final : public JS::GlobalObject { JS_OBJECT(SheetGlobalObject, JS::GlobalObject); public: - SheetGlobalObject(Sheet& sheet); + SheetGlobalObject(Sheet&); virtual ~SheetGlobalObject() override; - virtual JS::Value get(const JS::PropertyName& name, JS::Value receiver = {}) const override; - virtual bool put(const JS::PropertyName& name, JS::Value value, JS::Value receiver = {}) override; + virtual JS::Value get(const JS::PropertyName&, JS::Value receiver = {}) const override; + virtual bool put(const JS::PropertyName&, JS::Value value, JS::Value receiver = {}) override; virtual void initialize() override; JS_DECLARE_NATIVE_FUNCTION(parse_cell_name); @@ -50,11 +50,11 @@ private: Sheet& m_sheet; }; -class WorkbookObject : public JS::Object { +class WorkbookObject final : public JS::Object { JS_OBJECT(WorkbookObject, JS::Object); public: - WorkbookObject(Workbook& workbook); + WorkbookObject(Workbook&); virtual ~WorkbookObject() override;