mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 08:18:55 +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
Notes:
sideshowbarker
2024-07-17 22:09:47 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 33829f05fe
Pull-request: https://github.com/SerenityOS/serenity/pull/19657
Reviewed-by: https://github.com/AtkinsSJ ✅
22 changed files with 46 additions and 46 deletions
|
@ -112,7 +112,7 @@ void CardGame::dump_layout() const
|
|||
dbgln("{}", stack);
|
||||
}
|
||||
|
||||
void CardGame::config_string_did_change(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, DeprecatedString const& value)
|
||||
void CardGame::config_string_did_change(StringView domain, StringView group, StringView key, StringView value)
|
||||
{
|
||||
if (domain == "Games" && group == "Cards") {
|
||||
if (key == "BackgroundColor") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue