mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +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
|
@ -45,7 +45,7 @@ public:
|
|||
}
|
||||
|
||||
int metric(MetricRole) const;
|
||||
DeprecatedString path(PathRole) const;
|
||||
ByteString path(PathRole) const;
|
||||
SystemTheme const& theme() const { return *m_theme_buffer.data<SystemTheme>(); }
|
||||
|
||||
void replace_internal_buffer(Badge<GUI::Application>, Core::AnonymousBuffer buffer);
|
||||
|
@ -175,25 +175,25 @@ public:
|
|||
int window_title_button_width() const { return metric(MetricRole::TitleButtonWidth); }
|
||||
int window_title_button_height() const { return metric(MetricRole::TitleButtonHeight); }
|
||||
|
||||
DeprecatedString title_button_icons_path() const { return path(PathRole::TitleButtonIcons); }
|
||||
DeprecatedString active_window_shadow_path() const { return path(PathRole::ActiveWindowShadow); }
|
||||
DeprecatedString inactive_window_shadow_path() const { return path(PathRole::InactiveWindowShadow); }
|
||||
DeprecatedString menu_shadow_path() const { return path(PathRole::MenuShadow); }
|
||||
DeprecatedString taskbar_shadow_path() const { return path(PathRole::TaskbarShadow); }
|
||||
DeprecatedString tooltip_shadow_path() const { return path(PathRole::TooltipShadow); }
|
||||
DeprecatedString color_scheme_path() const { return path(PathRole::ColorScheme); }
|
||||
ByteString title_button_icons_path() const { return path(PathRole::TitleButtonIcons); }
|
||||
ByteString active_window_shadow_path() const { return path(PathRole::ActiveWindowShadow); }
|
||||
ByteString inactive_window_shadow_path() const { return path(PathRole::InactiveWindowShadow); }
|
||||
ByteString menu_shadow_path() const { return path(PathRole::MenuShadow); }
|
||||
ByteString taskbar_shadow_path() const { return path(PathRole::TaskbarShadow); }
|
||||
ByteString tooltip_shadow_path() const { return path(PathRole::TooltipShadow); }
|
||||
ByteString color_scheme_path() const { return path(PathRole::ColorScheme); }
|
||||
|
||||
Color color(ColorRole role) const { return m_impl->color(role); }
|
||||
Gfx::TextAlignment alignment(AlignmentRole role) const { return m_impl->alignment(role); }
|
||||
bool flag(FlagRole role) const { return m_impl->flag(role); }
|
||||
int metric(MetricRole role) const { return m_impl->metric(role); }
|
||||
DeprecatedString path(PathRole role) const { return m_impl->path(role); }
|
||||
ByteString path(PathRole role) const { return m_impl->path(role); }
|
||||
|
||||
void set_color(ColorRole, Color);
|
||||
void set_alignment(AlignmentRole, Gfx::TextAlignment);
|
||||
void set_flag(FlagRole, bool);
|
||||
void set_metric(MetricRole, int);
|
||||
void set_path(PathRole, DeprecatedString);
|
||||
void set_path(PathRole, ByteString);
|
||||
|
||||
SystemTheme const& theme() const { return m_impl->theme(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue