mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
Userland: Convert config listener callbacks to use StringView
The immutability of the string is not relevant here, since the string we're given was allocated in the IPC serialization layer and will be destroyed shortly afterwards. Additionally, noone relies on DeprecatedString-specific functionality. This will make it easier to convert the IPC layer itself to String later on.
This commit is contained in:
parent
5f1dbbaaa6
commit
33829f05fe
22 changed files with 46 additions and 46 deletions
|
@ -574,7 +574,7 @@ ErrorOr<int> run_in_desktop_mode()
|
|||
};
|
||||
|
||||
struct BackgroundWallpaperListener : Config::Listener {
|
||||
virtual void config_string_did_change(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, DeprecatedString const& value) override
|
||||
virtual void config_string_did_change(StringView domain, StringView group, StringView key, StringView value) override
|
||||
{
|
||||
if (domain == "WindowManager" && group == "Background" && key == "Wallpaper") {
|
||||
if (value.is_empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue