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:
Brian Gianforcaro 2021-09-15 23:58:44 -07:00 committed by Andreas Kling
parent f327f54399
commit fda48d7a6b
Notes: sideshowbarker 2024-07-18 03:51:27 +09:00

View File

@ -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