mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-23 19:00:59 +00:00
LibWeb: Use explicit move to avoid unnecessary RefPtr ref / unref
This commit is contained in:
parent
2b57018196
commit
889ade06fe
Notes:
sideshowbarker
2024-07-18 03:52:24 +09:00
Author: https://github.com/bgianfo
Commit: 889ade06fe
Pull-request: https://github.com/SerenityOS/serenity/pull/10053
2 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ void StyleProperties::load_font(Layout::Node const& node) const
|
|||
found_font = font_fallback(monospace, bold);
|
||||
}
|
||||
|
||||
m_font = found_font;
|
||||
m_font = move(found_font);
|
||||
FontCache::the().set(font_selector, *m_font);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue