mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:45:08 +00:00
GWidget: Make set_font() take either Font* or Font&.
This commit is contained in:
parent
c0742e4c23
commit
b522e3cc05
2 changed files with 4 additions and 3 deletions
|
@ -371,12 +371,12 @@ void GWidget::set_focus(bool focus)
|
|||
}
|
||||
}
|
||||
|
||||
void GWidget::set_font(RefPtr<Font>&& font)
|
||||
void GWidget::set_font(Font* font)
|
||||
{
|
||||
if (!font)
|
||||
m_font = Font::default_font();
|
||||
else
|
||||
m_font = move(font);
|
||||
m_font = font;
|
||||
update();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue