diff options
author | implicitfield <114500360+implicitfield@users.noreply.github.com> | 2023-03-17 13:38:39 +0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-21 10:06:41 +0100 |
commit | c9ad252e3320e57913684047916b876be5af00b0 (patch) | |
tree | df846a1757a7106e007bbfe1a4c84f16e2a370f1 | |
parent | 9f2a396c6ee97550f12fc0a7591a63e381d74b60 (diff) | |
download | serenity-c9ad252e3320e57913684047916b876be5af00b0.zip |
LibGUI: Make Desktop::set_wallpaper accept an Optional<StringView>
-rw-r--r-- | Userland/Libraries/LibGUI/Desktop.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/Desktop.h | 2 |
2 files changed, 2 insertions, 2 deletions
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<Gfx::Bitmap> Desktop::wallpaper_bitmap() const return ConnectionToWindowServer::the().get_wallpaper().bitmap(); } -bool Desktop::set_wallpaper(RefPtr<Gfx::Bitmap const> wallpaper_bitmap, Optional<DeprecatedString> path) +bool Desktop::set_wallpaper(RefPtr<Gfx::Bitmap const> wallpaper_bitmap, Optional<StringView> 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<Gfx::Bitmap> wallpaper_bitmap() const; - bool set_wallpaper(RefPtr<Gfx::Bitmap const> wallpaper_bitmap, Optional<DeprecatedString> path); + bool set_wallpaper(RefPtr<Gfx::Bitmap const> wallpaper_bitmap, Optional<StringView> path); void set_system_effects(Vector<bool> effects) { m_system_effects = { effects }; }; SystemEffects const& system_effects() const { return m_system_effects; } |