diff options
author | Linus Groh <mail@linusgroh.de> | 2023-04-20 16:02:51 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-20 20:43:30 +0200 |
commit | 37c9dbe248809bcfb0a5d472f7caff2fb89da1ae (patch) | |
tree | ee94e1ec08aa6cf752baef1c12a19972ba05e57c | |
parent | 352da3623b1a849e4173bf0ac45fe55d4408fbaf (diff) | |
download | serenity-37c9dbe248809bcfb0a5d472f7caff2fb89da1ae.zip |
LibWeb/Painting: Move-assign value in set_containing_line_box_fragment
An Optional<Layout::LineBoxFragmentCoordinate> is 24 bytes, which isn't
small enough to pass by value and then copy.
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/PaintableBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp index df4f4443dc..deb95630dd 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -128,7 +128,7 @@ CSSPixelRect PaintableBox::absolute_paint_rect() const void PaintableBox::set_containing_line_box_fragment(Optional<Layout::LineBoxFragmentCoordinate> fragment_coordinate) { - m_containing_line_box_fragment = fragment_coordinate; + m_containing_line_box_fragment = move(fragment_coordinate); } StackingContext* PaintableBox::enclosing_stacking_context() |