1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +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:
Ali Mohammad Pur 2023-12-16 17:49:34 +03:30 committed by Ali Mohammad Pur
parent 38d62563b3
commit 5e1499d104
1615 changed files with 10257 additions and 10257 deletions

View file

@ -44,14 +44,14 @@ public:
void set_active_tool(Tool*);
void update_tool_cursor();
void did_complete_action(DeprecatedString action_text);
void did_complete_action(ByteString action_text);
bool undo();
bool redo();
auto& undo_stack() { return m_undo_stack; }
DeprecatedString const& path() const { return m_path; }
void set_path(DeprecatedString);
ByteString const& path() const { return m_path; }
void set_path(ByteString);
String const& title() const { return m_title; }
void set_title(String);
@ -122,13 +122,13 @@ public:
void set_status_info_to_color_at_mouse_position(Gfx::IntPoint position, bool sample_all_layers);
void set_editor_color_to_color_at_mouse_position(GUI::MouseEvent const& event, bool sample_all_layers);
void set_modified(DeprecatedString action_text);
void set_modified(ByteString action_text);
void set_unmodified();
void update_modified();
Function<void(DeprecatedString)> on_appended_status_info_change;
DeprecatedString appended_status_info() { return m_appended_status_info; }
void set_appended_status_info(DeprecatedString);
DeprecatedString generate_unique_layer_name(DeprecatedString const& original_layer_name);
Function<void(ByteString)> on_appended_status_info_change;
ByteString appended_status_info() { return m_appended_status_info; }
void set_appended_status_info(ByteString);
ByteString generate_unique_layer_name(ByteString const& original_layer_name);
private:
explicit ImageEditor(NonnullRefPtr<Image>);
@ -170,7 +170,7 @@ private:
RefPtr<Layer> m_active_layer;
GUI::UndoStack m_undo_stack;
DeprecatedString m_path;
ByteString m_path;
String m_title;
Vector<NonnullRefPtr<Guide>> m_guides;
@ -202,7 +202,7 @@ private:
void draw_marching_ants_pixel(Gfx::Painter&, int x, int y) const;
Core::EventLoop& m_gui_event_loop;
DeprecatedString m_appended_status_info;
ByteString m_appended_status_info;
};
}