diff options
Diffstat (limited to 'Userland/Libraries/LibGfx/Path.h')
-rw-r--r-- | Userland/Libraries/LibGfx/Path.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Path.h b/Userland/Libraries/LibGfx/Path.h index 40cfdcc769..62a7a80558 100644 --- a/Userland/Libraries/LibGfx/Path.h +++ b/Userland/Libraries/LibGfx/Path.h @@ -197,7 +197,7 @@ private: template<typename T, typename... Args> void append_segment(Args&&... args) { - m_segments.append(adopt(*new T(forward<Args>(args)...))); + m_segments.append(adopt_ref(*new T(forward<Args>(args)...))); } NonnullRefPtrVector<Segment> m_segments {}; |