mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Everywhere: Rename {Deprecated => Byte}String
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
This commit is contained in:
parent
38d62563b3
commit
5e1499d104
1615 changed files with 10257 additions and 10257 deletions
|
@ -19,27 +19,27 @@ Client& Client::the()
|
|||
return *s_the;
|
||||
}
|
||||
|
||||
void Client::pledge_domains(Vector<DeprecatedString> const& domains)
|
||||
void Client::pledge_domains(Vector<ByteString> const& domains)
|
||||
{
|
||||
async_pledge_domains(domains);
|
||||
}
|
||||
|
||||
void Client::monitor_domain(DeprecatedString const& domain)
|
||||
void Client::monitor_domain(ByteString const& domain)
|
||||
{
|
||||
async_monitor_domain(domain);
|
||||
}
|
||||
|
||||
Vector<DeprecatedString> Client::list_keys(StringView domain, StringView group)
|
||||
Vector<ByteString> Client::list_keys(StringView domain, StringView group)
|
||||
{
|
||||
return list_config_keys(domain, group);
|
||||
}
|
||||
|
||||
Vector<DeprecatedString> Client::list_groups(StringView domain)
|
||||
Vector<ByteString> Client::list_groups(StringView domain)
|
||||
{
|
||||
return list_config_groups(domain);
|
||||
}
|
||||
|
||||
DeprecatedString Client::read_string(StringView domain, StringView group, StringView key, StringView fallback)
|
||||
ByteString Client::read_string(StringView domain, StringView group, StringView key, StringView fallback)
|
||||
{
|
||||
return read_string_value(domain, group, key).value_or(fallback);
|
||||
}
|
||||
|
@ -94,49 +94,49 @@ void Client::add_group(StringView domain, StringView group)
|
|||
add_group_entry(domain, group);
|
||||
}
|
||||
|
||||
void Client::notify_changed_string_value(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, DeprecatedString const& value)
|
||||
void Client::notify_changed_string_value(ByteString const& domain, ByteString const& group, ByteString const& key, ByteString const& value)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_string_did_change(domain, group, key, value);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_changed_i32_value(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, i32 value)
|
||||
void Client::notify_changed_i32_value(ByteString const& domain, ByteString const& group, ByteString const& key, i32 value)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_i32_did_change(domain, group, key, value);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_changed_u32_value(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, u32 value)
|
||||
void Client::notify_changed_u32_value(ByteString const& domain, ByteString const& group, ByteString const& key, u32 value)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_u32_did_change(domain, group, key, value);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_changed_bool_value(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, bool value)
|
||||
void Client::notify_changed_bool_value(ByteString const& domain, ByteString const& group, ByteString const& key, bool value)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_bool_did_change(domain, group, key, value);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_removed_key(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key)
|
||||
void Client::notify_removed_key(ByteString const& domain, ByteString const& group, ByteString const& key)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_key_was_removed(domain, group, key);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_removed_group(DeprecatedString const& domain, DeprecatedString const& group)
|
||||
void Client::notify_removed_group(ByteString const& domain, ByteString const& group)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_group_was_removed(domain, group);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_added_group(DeprecatedString const& domain, DeprecatedString const& group)
|
||||
void Client::notify_added_group(ByteString const& domain, ByteString const& group)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_group_was_added(domain, group);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue