1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:37:45 +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

@ -82,7 +82,7 @@ public:
ConnectionFromClient const* dnd_client() const { return m_dnd_client.ptr(); }
Core::MimeData const& dnd_mime_data() const { return *m_dnd_mime_data; }
void start_dnd_drag(ConnectionFromClient&, String const& text, Gfx::Bitmap const*, Core::MimeData const&);
void start_dnd_drag(ConnectionFromClient&, DeprecatedString const& text, Gfx::Bitmap const*, Core::MimeData const&);
void end_dnd_drag();
void set_accepts_drag(bool);
@ -143,9 +143,9 @@ public:
Gfx::Font const& font() const;
Gfx::Font const& window_title_font() const;
bool set_screen_layout(ScreenLayout&&, bool, String&);
bool set_screen_layout(ScreenLayout&&, bool, DeprecatedString&);
ScreenLayout get_screen_layout() const;
bool save_screen_layout(String&);
bool save_screen_layout(DeprecatedString&);
void set_acceleration_factor(double);
void set_scroll_step_size(unsigned);
@ -199,7 +199,7 @@ public:
return nullptr;
}
bool update_theme(String theme_path, String theme_name, bool keep_desktop_background);
bool update_theme(DeprecatedString theme_path, DeprecatedString theme_name, bool keep_desktop_background);
void invalidate_after_theme_or_font_change();
bool set_theme_override(Core::AnonymousBuffer const& theme_override);
@ -317,7 +317,7 @@ public:
MultiScaleBitmaps const* overlay_rect_shadow() const { return m_overlay_rect_shadow.ptr(); }
void apply_cursor_theme(String const& name);
void apply_cursor_theme(DeprecatedString const& name);
void set_cursor_highlight_radius(int radius);
void set_cursor_highlight_color(Gfx::Color const& color);
@ -472,7 +472,7 @@ private:
OwnPtr<DndOverlay> m_dnd_overlay;
WeakPtr<ConnectionFromClient> m_dnd_client;
String m_dnd_text;
DeprecatedString m_dnd_text;
bool m_dnd_accepts_drag { false };
RefPtr<Core::MimeData> m_dnd_mime_data;