summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Applications/Terminal/Terminal.cpp4
-rw-r--r--Applications/Terminal/Terminal.h2
-rw-r--r--LibGUI/GCheckBox.cpp4
-rw-r--r--LibGUI/GCheckBox.h2
-rw-r--r--LibGUI/GStatusBar.cpp4
-rw-r--r--LibGUI/GStatusBar.h2
-rw-r--r--Servers/WindowServer/WSEvent.h8
-rw-r--r--Servers/WindowServer/WSMenu.cpp2
-rw-r--r--Servers/WindowServer/WSMenu.h2
-rw-r--r--Servers/WindowServer/WSWindow.cpp4
-rw-r--r--Servers/WindowServer/WSWindow.h2
11 files changed, 18 insertions, 18 deletions
diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp
index 3a4d70d50b..6604c4b8e3 100644
--- a/Applications/Terminal/Terminal.cpp
+++ b/Applications/Terminal/Terminal.cpp
@@ -830,12 +830,12 @@ void Terminal::paint_event(GPaintEvent& event)
painter.draw_rect(frame_inner_rect(), Color::Red);
}
-void Terminal::set_window_title(String&& title)
+void Terminal::set_window_title(const String& title)
{
auto* w = window();
if (!w)
return;
- w->set_title(move(title));
+ w->set_title(title);
}
void Terminal::invalidate_cursor()
diff --git a/Applications/Terminal/Terminal.h b/Applications/Terminal/Terminal.h
index 6d3905558a..97f4ddd3ba 100644
--- a/Applications/Terminal/Terminal.h
+++ b/Applications/Terminal/Terminal.h
@@ -40,7 +40,7 @@ private:
void set_cursor(unsigned row, unsigned column);
void put_character_at(unsigned row, unsigned column, byte ch);
void invalidate_cursor();
- void set_window_title(String&&);
+ void set_window_title(const String&);
void inject_string(const String&);
void unimplemented_escape();
diff --git a/LibGUI/GCheckBox.cpp b/LibGUI/GCheckBox.cpp
index 3bcac3e5ac..cb14d587f7 100644
--- a/LibGUI/GCheckBox.cpp
+++ b/LibGUI/GCheckBox.cpp
@@ -35,11 +35,11 @@ GCheckBox::~GCheckBox()
{
}
-void GCheckBox::set_caption(String&& caption)
+void GCheckBox::set_caption(const String& caption)
{
if (caption == m_caption)
return;
- m_caption = move(caption);
+ m_caption = caption;
update();
}
diff --git a/LibGUI/GCheckBox.h b/LibGUI/GCheckBox.h
index 2a85642a5f..760eb3f306 100644
--- a/LibGUI/GCheckBox.h
+++ b/LibGUI/GCheckBox.h
@@ -10,7 +10,7 @@ public:
virtual ~GCheckBox() override;
String caption() const { return m_caption; }
- void set_caption(String&&);
+ void set_caption(const String&);
bool is_checked() const { return m_checked; }
void set_checked(bool);
diff --git a/LibGUI/GStatusBar.cpp b/LibGUI/GStatusBar.cpp
index 74c6816f22..210622bab9 100644
--- a/LibGUI/GStatusBar.cpp
+++ b/LibGUI/GStatusBar.cpp
@@ -26,9 +26,9 @@ GStatusBar::~GStatusBar()
{
}
-void GStatusBar::set_text(String&& text)
+void GStatusBar::set_text(const String& text)
{
- m_label->set_text(move(text));
+ m_label->set_text(text);
}
String GStatusBar::text() const
diff --git a/LibGUI/GStatusBar.h b/LibGUI/GStatusBar.h
index 9bac204c30..1ba0888179 100644
--- a/LibGUI/GStatusBar.h
+++ b/LibGUI/GStatusBar.h
@@ -11,7 +11,7 @@ public:
virtual ~GStatusBar() override;
String text() const;
- void set_text(String&&);
+ void set_text(const String&);
virtual const char* class_name() const override { return "GStatusBar"; }
diff --git a/Servers/WindowServer/WSEvent.h b/Servers/WindowServer/WSEvent.h
index a7d5b21df5..d0033ae48e 100644
--- a/Servers/WindowServer/WSEvent.h
+++ b/Servers/WindowServer/WSEvent.h
@@ -407,9 +407,9 @@ private:
class WSAPISetWallpaperRequest final : public WSAPIClientRequest {
public:
- explicit WSAPISetWallpaperRequest(int client_id, String&& wallpaper)
+ explicit WSAPISetWallpaperRequest(int client_id, const String& wallpaper)
: WSAPIClientRequest(WSEvent::APISetWallpaperRequest, client_id)
- , m_wallpaper(move(wallpaper))
+ , m_wallpaper(wallpaper)
{
}
@@ -429,10 +429,10 @@ public:
class WSAPISetWindowTitleRequest final : public WSAPIClientRequest {
public:
- explicit WSAPISetWindowTitleRequest(int client_id, int window_id, String&& title)
+ explicit WSAPISetWindowTitleRequest(int client_id, int window_id, const String& title)
: WSAPIClientRequest(WSEvent::APISetWindowTitleRequest, client_id)
, m_window_id(window_id)
- , m_title(move(title))
+ , m_title(title)
{
}
diff --git a/Servers/WindowServer/WSMenu.cpp b/Servers/WindowServer/WSMenu.cpp
index e505ccf62a..d900a49b6b 100644
--- a/Servers/WindowServer/WSMenu.cpp
+++ b/Servers/WindowServer/WSMenu.cpp
@@ -11,7 +11,7 @@
#include <SharedGraphics/StylePainter.h>
#include <SharedGraphics/Font.h>
-WSMenu::WSMenu(WSClientConnection* client, int menu_id, String&& name)
+WSMenu::WSMenu(WSClientConnection* client, int menu_id, const String& name)
: m_client(client)
, m_menu_id(menu_id)
, m_name(move(name))
diff --git a/Servers/WindowServer/WSMenu.h b/Servers/WindowServer/WSMenu.h
index 0366bfb56e..43f66f838d 100644
--- a/Servers/WindowServer/WSMenu.h
+++ b/Servers/WindowServer/WSMenu.h
@@ -15,7 +15,7 @@ class Font;
class WSMenu final : public CObject {
public:
- WSMenu(WSClientConnection*, int menu_id, String&& name);
+ WSMenu(WSClientConnection*, int menu_id, const String& name);
virtual ~WSMenu() override;
WSClientConnection* client() { return m_client; }
diff --git a/Servers/WindowServer/WSWindow.cpp b/Servers/WindowServer/WSWindow.cpp
index 8e653f682b..20e50ac467 100644
--- a/Servers/WindowServer/WSWindow.cpp
+++ b/Servers/WindowServer/WSWindow.cpp
@@ -50,11 +50,11 @@ WSWindow::~WSWindow()
WSWindowManager::the().remove_window(*this);
}
-void WSWindow::set_title(String&& title)
+void WSWindow::set_title(const String& title)
{
if (m_title == title)
return;
- m_title = move(title);
+ m_title = title;
WSWindowManager::the().notify_title_changed(*this);
}
diff --git a/Servers/WindowServer/WSWindow.h b/Servers/WindowServer/WSWindow.h
index 0d33fa07ef..072e64fca2 100644
--- a/Servers/WindowServer/WSWindow.h
+++ b/Servers/WindowServer/WSWindow.h
@@ -43,7 +43,7 @@ public:
int window_id() const { return m_window_id; }
String title() const { return m_title; }
- void set_title(String&&);
+ void set_title(const String&);
float opacity() const { return m_opacity; }
void set_opacity(float opacity) { m_opacity = opacity; }