mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +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
|
@ -54,7 +54,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
virtual void config_bool_did_change(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, bool value) override
|
||||
virtual void config_bool_did_change(StringView domain, StringView group, StringView key, bool value) override
|
||||
{
|
||||
VERIFY(domain == "Terminal");
|
||||
|
||||
|
@ -68,7 +68,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
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
|
||||
{
|
||||
VERIFY(domain == "Terminal");
|
||||
|
||||
|
@ -94,7 +94,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
virtual void config_i32_did_change(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, i32 value) override
|
||||
virtual void config_i32_did_change(StringView domain, StringView group, StringView key, i32 value) override
|
||||
{
|
||||
VERIFY(domain == "Terminal");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue