mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +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:
parent
f327f54399
commit
fda48d7a6b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue