LibWeb: Use explicit move to avoid unnecessary RefPtr ref / unref

This commit is contained in:
Brian Gianforcaro 2021-09-15 23:26:15 -07:00 committed by Andreas Kling
commit 889ade06fe
Notes: sideshowbarker 2024-07-18 03:52:24 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ void StyleProperties::load_font(Layout::Node const& node) const
found_font = font_fallback(monospace, bold);
}
m_font = found_font;
m_font = move(found_font);
FontCache::the().set(font_selector, *m_font);
}