mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
Libraries: Fix visibility of Object-derivative constructors
Derivatives of Core::Object should be constructed through ClassName::construct(), to avoid handling ref-counted objects with refcount zero. Fixing the visibility means that misuses like this are more difficult.
This commit is contained in:
parent
3796d417e0
commit
b3e9a4e603
19 changed files with 62 additions and 50 deletions
|
@ -27,7 +27,6 @@ class TerminalWidget final
|
|||
C_OBJECT(TerminalWidget);
|
||||
|
||||
public:
|
||||
TerminalWidget(int ptm_fd, bool automatic_size_policy);
|
||||
virtual ~TerminalWidget() override;
|
||||
|
||||
void set_pty_master_fd(int fd);
|
||||
|
@ -95,6 +94,8 @@ public:
|
|||
void set_color_scheme(const StringView&);
|
||||
|
||||
private:
|
||||
TerminalWidget(int ptm_fd, bool automatic_size_policy);
|
||||
|
||||
// ^GUI::Widget
|
||||
virtual void event(Core::Event&) override;
|
||||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue