mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:27:45 +00:00
LibWeb: Convert const pointer to nonnull into a reference
This commit is contained in:
parent
a36d13e36c
commit
c55527944c
2 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ namespace Web::Layout {
|
|||
FormattingContext::FormattingContext(Type type, Box& context_box, FormattingContext* parent)
|
||||
: m_type(type)
|
||||
, m_parent(parent)
|
||||
, m_context_box(&context_box)
|
||||
, m_context_box(context_box)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ public:
|
|||
|
||||
virtual void run(Box&, LayoutMode) = 0;
|
||||
|
||||
Box& context_box() { return *m_context_box; }
|
||||
const Box& context_box() const { return *m_context_box; }
|
||||
Box& context_box() { return m_context_box; }
|
||||
const Box& context_box() const { return m_context_box; }
|
||||
|
||||
FormattingContext* parent() { return m_parent; }
|
||||
const FormattingContext* parent() const { return m_parent; }
|
||||
|
@ -69,7 +69,7 @@ protected:
|
|||
Type m_type {};
|
||||
|
||||
FormattingContext* m_parent { nullptr };
|
||||
Box* m_context_box { nullptr };
|
||||
Box& m_context_box;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue