mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Spreadsheet: Add "final" to JS objects and tweak declarations
This commit is contained in:
parent
a7cbc7fcb2
commit
b4bfc3ed54
Notes:
sideshowbarker
2024-07-19 02:49:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b4bfc3ed54d
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue