mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 22:42:18 +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
Notes:
sideshowbarker
2024-07-18 03:51:27 +09:00
Author: https://github.com/bgianfo
Commit: fda48d7a6b
Pull-request: https://github.com/SerenityOS/serenity/pull/10053
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