mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
LibWeb: Use explicit move to avoid unnecessary RefPtr ref / unref
This commit is contained in:
parent
2b57018196
commit
889ade06fe
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);
|
found_font = font_fallback(monospace, bold);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_font = found_font;
|
m_font = move(found_font);
|
||||||
FontCache::the().set(font_selector, *m_font);
|
FontCache::the().set(font_selector, *m_font);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -264,7 +264,7 @@ public:
|
||||||
const NonnullRefPtr<DOMImplementation> implementation() const { return m_implementation; }
|
const NonnullRefPtr<DOMImplementation> implementation() const { return m_implementation; }
|
||||||
|
|
||||||
RefPtr<HTML::HTMLScriptElement> current_script() const { return m_current_script; }
|
RefPtr<HTML::HTMLScriptElement> current_script() const { return m_current_script; }
|
||||||
void set_current_script(Badge<HTML::HTMLScriptElement>, RefPtr<HTML::HTMLScriptElement> script) { m_current_script = script; }
|
void set_current_script(Badge<HTML::HTMLScriptElement>, RefPtr<HTML::HTMLScriptElement> script) { m_current_script = move(script); }
|
||||||
|
|
||||||
u32 ignore_destructive_writes_counter() const { return m_ignore_destructive_writes_counter; }
|
u32 ignore_destructive_writes_counter() const { return m_ignore_destructive_writes_counter; }
|
||||||
void increment_ignore_destructive_writes_counter() { m_ignore_destructive_writes_counter++; }
|
void increment_ignore_destructive_writes_counter() { m_ignore_destructive_writes_counter++; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue