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

LibGfx: Make Gfx::Path const-correct internally (segment list)

This commit is contained in:
Andreas Kling 2023-02-19 23:32:36 +01:00
parent 485958bb6f
commit ca44b26b2a
2 changed files with 4 additions and 4 deletions

View file

@ -218,7 +218,7 @@ public:
float x;
};
NonnullRefPtrVector<Segment> const& segments() const { return m_segments; }
NonnullRefPtrVector<Segment const> const& segments() const { return m_segments; }
auto& split_lines() const
{
if (!m_split_lines.has_value()) {
@ -268,7 +268,7 @@ private:
m_segments.append(adopt_ref(*new T(forward<Args>(args)...)));
}
NonnullRefPtrVector<Segment> m_segments {};
NonnullRefPtrVector<Segment const> m_segments {};
Optional<Vector<SplitLineSegment>> m_split_lines {};
Optional<Gfx::FloatRect> m_bounding_box;