mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 01:27:31 +00:00
LibGfx: Use move to avoid unnecessary ref/unref of network device RefPtr
Flagged by pvs-studio as a potential perf optimization.
This commit is contained in:
committed by
Andreas Kling
parent
f327f54399
commit
fda48d7a6b
@@ -35,7 +35,7 @@ void Typeface::add_bitmap_font(RefPtr<BitmapFont> font)
|
||||
|
||||
void Typeface::set_ttf_font(RefPtr<TTF::Font> font)
|
||||
{
|
||||
m_ttf_font = font;
|
||||
m_ttf_font = move(font);
|
||||
}
|
||||
|
||||
RefPtr<Font> Typeface::get_font(unsigned size) const
|
||||
|
||||
Reference in New Issue
Block a user