mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:37:46 +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:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
void set_side(Chess::Color side) { m_side = side; };
|
||||
|
||||
void set_piece_set(StringView set);
|
||||
String const& piece_set() const { return m_piece_set; };
|
||||
DeprecatedString const& piece_set() const { return m_piece_set; };
|
||||
|
||||
Chess::Square mouse_to_square(GUI::MouseEvent& event) const;
|
||||
|
||||
|
@ -47,7 +47,7 @@ public:
|
|||
bool show_available_moves() const { return m_show_available_moves; }
|
||||
void set_show_available_moves(bool e) { m_show_available_moves = e; }
|
||||
|
||||
String get_fen() const;
|
||||
DeprecatedString get_fen() const;
|
||||
void import_pgn(Core::File&);
|
||||
void export_pgn(Core::File&) const;
|
||||
|
||||
|
@ -56,7 +56,7 @@ public:
|
|||
void reset();
|
||||
|
||||
struct BoardTheme {
|
||||
String name;
|
||||
DeprecatedString name;
|
||||
Color dark_square_color;
|
||||
Color light_square_color;
|
||||
};
|
||||
|
@ -120,7 +120,7 @@ private:
|
|||
Color m_marking_secondary_color { Color::from_argb(0x6655dd55) };
|
||||
Chess::Color m_side { Chess::Color::White };
|
||||
HashMap<Chess::Piece, RefPtr<Gfx::Bitmap>> m_pieces;
|
||||
String m_piece_set;
|
||||
DeprecatedString m_piece_set;
|
||||
Chess::Square m_moving_square { 50, 50 };
|
||||
Gfx::IntPoint m_drag_point;
|
||||
bool m_dragging_piece { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue