1
Fork 0
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:
Andreas Kling 2019-07-11 16:02:39 +02:00
parent c0742e4c23
commit b522e3cc05
2 changed files with 4 additions and 3 deletions

View file

@ -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();
}