summaryrefslogtreecommitdiff
path: root/Userland/Services/NotificationServer
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/NotificationServer')
-rw-r--r--Userland/Services/NotificationServer/NotificationWindow.cpp4
-rw-r--r--Userland/Services/NotificationServer/NotificationWindow.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Services/NotificationServer/NotificationWindow.cpp b/Userland/Services/NotificationServer/NotificationWindow.cpp
index 0c87849ce8..7ab7847c97 100644
--- a/Userland/Services/NotificationServer/NotificationWindow.cpp
+++ b/Userland/Services/NotificationServer/NotificationWindow.cpp
@@ -19,7 +19,7 @@ namespace NotificationServer {
static HashMap<u32, RefPtr<NotificationWindow>> s_windows;
-static void update_notification_window_locations(const Gfx::IntRect& screen_rect)
+static void update_notification_window_locations(Gfx::IntRect const& screen_rect)
{
Gfx::IntRect last_window_rect;
for (auto& window_entry : s_windows) {
@@ -37,7 +37,7 @@ static void update_notification_window_locations(const Gfx::IntRect& screen_rect
}
}
-NotificationWindow::NotificationWindow(i32 client_id, const String& text, const String& title, const Gfx::ShareableBitmap& icon)
+NotificationWindow::NotificationWindow(i32 client_id, String const& text, String const& title, Gfx::ShareableBitmap const& icon)
{
m_id = client_id;
s_windows.set(m_id, this);
diff --git a/Userland/Services/NotificationServer/NotificationWindow.h b/Userland/Services/NotificationServer/NotificationWindow.h
index a6ca12686b..cae0bd505a 100644
--- a/Userland/Services/NotificationServer/NotificationWindow.h
+++ b/Userland/Services/NotificationServer/NotificationWindow.h
@@ -18,9 +18,9 @@ public:
virtual ~NotificationWindow() override = default;
void set_original_rect(Gfx::IntRect original_rect) { m_original_rect = original_rect; };
- void set_text(const String&);
- void set_title(const String&);
- void set_image(const Gfx::ShareableBitmap&);
+ void set_text(String const&);
+ void set_title(String const&);
+ void set_image(Gfx::ShareableBitmap const&);
static RefPtr<NotificationWindow> get_window_by_id(i32 id);
@@ -29,7 +29,7 @@ protected:
virtual void leave_event(Core::Event&) override;
private:
- NotificationWindow(i32 client_id, const String& text, const String& title, const Gfx::ShareableBitmap&);
+ NotificationWindow(i32 client_id, String const& text, String const& title, Gfx::ShareableBitmap const&);
virtual void screen_rects_change_event(GUI::ScreenRectsChangeEvent&) override;