Skip to content

Commit

Permalink
Spreadsheet: Add "final" to JS objects and tweak declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Sep 8, 2020
1 parent a7cbc7f commit b4bfc3e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Applications/Spreadsheet/JSIntegration.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -50,11 +50,11 @@ class SheetGlobalObject : public JS::GlobalObject {
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;

Expand Down

0 comments on commit b4bfc3e

Please sign in to comment.