1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

Spreadsheet: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr

This commit is contained in:
Matthew Olsson 2023-02-26 17:11:45 -07:00 committed by Andreas Kling
parent 7c0c1c8f49
commit b5f01bd212
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ private:
HashTable<Position> m_selected_cells;
Workbook& m_workbook;
mutable SheetGlobalObject* m_global_object;
mutable JS::GCPtr<SheetGlobalObject> m_global_object;
NonnullOwnPtr<JS::Interpreter> m_interpreter;

View file

@ -46,7 +46,7 @@ private:
NonnullRefPtr<JS::VM> m_vm;
NonnullOwnPtr<JS::Interpreter> m_interpreter;
JS::VM::InterpreterExecutionScope m_interpreter_scope;
WorkbookObject* m_workbook_object { nullptr };
JS::GCPtr<WorkbookObject> m_workbook_object;
JS::ExecutionContext m_main_execution_context;
GUI::Window& m_parent_window;