LibGUI: Fix move() of const StringView&

This commit is contained in:
Conrad Pankoff 2019-09-16 01:29:23 +10:00 committed by Andreas Kling
commit aa95bd7037
Notes: sideshowbarker 2024-07-19 12:05:30 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ void TextWidget::set_text(const StringView& text)
{ {
if (text == m_text) if (text == m_text)
return; return;
m_text = move(text); m_text = text;
wrap_and_set_height(); wrap_and_set_height();
update(); update();
} }

View file

@ -29,7 +29,7 @@ void GLabel::set_text(const StringView& text)
{ {
if (text == m_text) if (text == m_text)
return; return;
m_text = move(text); m_text = text;
update(); update();
} }