mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 21:28:40 +03: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: https://github.com/SerenityOS/serenity/commit/fda48d7a6bf Pull-request: https://github.com/SerenityOS/serenity/pull/10053
@ -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…
Reference in New Issue
Block a user