diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-10 12:34:44 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-10 12:34:44 +0100 |
commit | 6836e21d1c9e1e9b00b5f87ac988d2f2a7639796 (patch) | |
tree | 4f5ce1bb05596a234738f375deb95652dfd270f7 /LibGUI | |
parent | 37388b311f290384e35f7ec82136399e41ac9663 (diff) | |
download | serenity-6836e21d1c9e1e9b00b5f87ac988d2f2a7639796.zip |
ProcessManager: Tidy up the memory stats and align everything nicely.
Diffstat (limited to 'LibGUI')
-rw-r--r-- | LibGUI/GLabel.cpp | 2 | ||||
-rw-r--r-- | LibGUI/GLabel.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/LibGUI/GLabel.cpp b/LibGUI/GLabel.cpp index dc09721652..2962d04051 100644 --- a/LibGUI/GLabel.cpp +++ b/LibGUI/GLabel.cpp @@ -16,7 +16,7 @@ void GLabel::set_icon(RetainPtr<GraphicsBitmap>&& icon) m_icon = move(icon); } -void GLabel::set_text(String&& text) +void GLabel::set_text(const String& text) { if (text == m_text) return; diff --git a/LibGUI/GLabel.h b/LibGUI/GLabel.h index f84a5dc3b5..29d42eb465 100644 --- a/LibGUI/GLabel.h +++ b/LibGUI/GLabel.h @@ -12,7 +12,7 @@ public: virtual ~GLabel() override; String text() const { return m_text; } - void set_text(String&&); + void set_text(const String&); void set_icon(RetainPtr<GraphicsBitmap>&&); const GraphicsBitmap* icon() const { return m_icon.ptr(); } |