ソースを参照

LibGUI: Fix move() of const StringView&

Conrad Pankoff 5 年 前
コミット
aa95bd7037
2 ファイル変更2 行追加2 行削除
  1. 1 1
      Applications/Welcome/TextWidget.cpp
  2. 1 1
      Libraries/LibGUI/GLabel.cpp

+ 1 - 1
Applications/Welcome/TextWidget.cpp

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

+ 1 - 1
Libraries/LibGUI/GLabel.cpp

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