From c9ad252e3320e57913684047916b876be5af00b0 Mon Sep 17 00:00:00 2001 From: implicitfield <114500360+implicitfield@users.noreply.github.com> Date: Fri, 17 Mar 2023 13:38:39 +0400 Subject: LibGUI: Make Desktop::set_wallpaper accept an Optional --- Userland/Libraries/LibGUI/Desktop.cpp | 2 +- Userland/Libraries/LibGUI/Desktop.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibGUI') diff --git a/Userland/Libraries/LibGUI/Desktop.cpp b/Userland/Libraries/LibGUI/Desktop.cpp index 980c6fdff6..1fa40eff4b 100644 --- a/Userland/Libraries/LibGUI/Desktop.cpp +++ b/Userland/Libraries/LibGUI/Desktop.cpp @@ -59,7 +59,7 @@ RefPtr Desktop::wallpaper_bitmap() const return ConnectionToWindowServer::the().get_wallpaper().bitmap(); } -bool Desktop::set_wallpaper(RefPtr wallpaper_bitmap, Optional path) +bool Desktop::set_wallpaper(RefPtr wallpaper_bitmap, Optional path) { if (m_is_setting_desktop_wallpaper) return false; diff --git a/Userland/Libraries/LibGUI/Desktop.h b/Userland/Libraries/LibGUI/Desktop.h index e1e18065c3..395bbc1cd5 100644 --- a/Userland/Libraries/LibGUI/Desktop.h +++ b/Userland/Libraries/LibGUI/Desktop.h @@ -33,7 +33,7 @@ public: DeprecatedString wallpaper_path() const; RefPtr wallpaper_bitmap() const; - bool set_wallpaper(RefPtr wallpaper_bitmap, Optional path); + bool set_wallpaper(RefPtr wallpaper_bitmap, Optional path); void set_system_effects(Vector effects) { m_system_effects = { effects }; }; SystemEffects const& system_effects() const { return m_system_effects; } -- cgit v1.2.3