Kaynağa Gözat

LibGUI: Fix move() of const StringView&

Conrad Pankoff 5 yıl önce
ebeveyn
işleme
aa95bd7037

+ 1 - 1
Applications/Welcome/TextWidget.cpp

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

+ 1 - 1
Libraries/LibGUI/GLabel.cpp

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