1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +00:00

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
parent 6fd096999e
commit aa95bd7037
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();
} }