1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:47:46 +00:00

LibWeb: Convert const pointer to nonnull into a reference

This commit is contained in:
Ben Wiederhake 2021-10-15 23:15:12 +02:00 committed by Andreas Kling
parent a36d13e36c
commit c55527944c
2 changed files with 4 additions and 4 deletions

View file

@ -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;
};
}