1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

AK+Everywhere: Rename String to DeprecatedString

We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
This commit is contained in:
Linus Groh 2022-12-04 18:02:33 +00:00 committed by Andreas Kling
parent f74251606d
commit 6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions

View file

@ -24,7 +24,7 @@ class Application::TooltipWindow final : public Window {
C_OBJECT(TooltipWindow);
public:
void set_tooltip(String const& tooltip)
void set_tooltip(DeprecatedString const& tooltip)
{
m_label->set_text(Gfx::parse_ampersand_string(tooltip));
int tooltip_width = m_label->effective_min_size().width().as_int() + 10;
@ -89,7 +89,7 @@ Application::Application(int argc, char** argv, Core::EventLoop::MakeInspectable
m_dnd_debugging_enabled = true;
for (int i = 1; i < argc; i++) {
String arg(argv[i]);
DeprecatedString arg(argv[i]);
m_args.append(move(arg));
}
@ -145,7 +145,7 @@ Action* Application::action_for_shortcut(Shortcut const& shortcut) const
return (*it).value;
}
void Application::show_tooltip(String tooltip, Widget const* tooltip_source_widget)
void Application::show_tooltip(DeprecatedString tooltip, Widget const* tooltip_source_widget)
{
if (!Desktop::the().system_effects().tooltips())
return;
@ -166,7 +166,7 @@ void Application::show_tooltip(String tooltip, Widget const* tooltip_source_widg
}
}
void Application::show_tooltip_immediately(String tooltip, Widget const* tooltip_source_widget)
void Application::show_tooltip_immediately(DeprecatedString tooltip, Widget const* tooltip_source_widget)
{
if (!Desktop::the().system_effects().tooltips())
return;
@ -276,7 +276,7 @@ void Application::set_pending_drop_widget(Widget* widget)
m_pending_drop_widget->update();
}
void Application::set_drag_hovered_widget_impl(Widget* widget, Gfx::IntPoint const& position, Vector<String> mime_types)
void Application::set_drag_hovered_widget_impl(Widget* widget, Gfx::IntPoint const& position, Vector<DeprecatedString> mime_types)
{
if (widget == m_drag_hovered_widget)
return;