From aa95bd70377df322360e6b39a11a762e0b2fa266 Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Mon, 16 Sep 2019 01:29:23 +1000 Subject: [PATCH] LibGUI: Fix move() of const StringView& --- Applications/Welcome/TextWidget.cpp | 2 +- Libraries/LibGUI/GLabel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/Welcome/TextWidget.cpp b/Applications/Welcome/TextWidget.cpp index ebd219d5e3..3ca2d0d07d 100644 --- a/Applications/Welcome/TextWidget.cpp +++ b/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(); } diff --git a/Libraries/LibGUI/GLabel.cpp b/Libraries/LibGUI/GLabel.cpp index 82f3e7b0ec..5c797fe99e 100644 --- a/Libraries/LibGUI/GLabel.cpp +++ b/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(); }