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:
parent
6fd096999e
commit
aa95bd7037
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue