mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Andreas Kling
parent
3796d417e0
commit
b3e9a4e603
@@ -81,7 +81,7 @@ private:
|
||||
class AbstractScrollableWidgetScrollbar final : public Scrollbar {
|
||||
C_OBJECT(AbstractScrollableWidgetScrollbar);
|
||||
|
||||
protected:
|
||||
private:
|
||||
explicit AbstractScrollableWidgetScrollbar(AbstractScrollableWidget& owner, Gfx::Orientation orientation)
|
||||
: Scrollbar(orientation)
|
||||
, m_owner(owner)
|
||||
@@ -93,7 +93,6 @@ private:
|
||||
m_owner.handle_wheel_event(event, *this);
|
||||
}
|
||||
|
||||
private:
|
||||
AbstractScrollableWidget& m_owner;
|
||||
};
|
||||
friend class ScrollableWidgetScrollbar;
|
||||
|
||||
Reference in New Issue
Block a user