mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +00:00
Chess+LibChess: Avoid using DeprecatedString
whenever possible
This commit is contained in:
parent
e7377c6d60
commit
55c5639004
4 changed files with 48 additions and 48 deletions
|
@ -25,7 +25,7 @@ enum class Type : u8 {
|
|||
None,
|
||||
};
|
||||
|
||||
DeprecatedString char_for_piece(Type type);
|
||||
StringView char_for_piece(Type type);
|
||||
Chess::Type piece_for_char_promotion(StringView str);
|
||||
|
||||
enum class Color : u8 {
|
||||
|
@ -145,8 +145,8 @@ public:
|
|||
NotFinished,
|
||||
};
|
||||
|
||||
static DeprecatedString result_to_deprecated_string(Result, Color turn);
|
||||
static DeprecatedString result_to_points_deprecated_string(Result, Color turn);
|
||||
static StringView result_to_string(Result, Color turn);
|
||||
static StringView result_to_points_string(Result, Color turn);
|
||||
|
||||
template<typename Callback>
|
||||
void generate_moves(Callback callback, Color color = Color::None) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue