1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:17:45 +00:00

Chess: Replace usage of DeprecatedString

This commit is contained in:
aryanbaburajan 2023-07-07 13:23:21 +05:30 committed by Jelle Raaijmakers
parent a94c0eea94
commit eb85291a18
5 changed files with 38 additions and 29 deletions

View file

@ -15,7 +15,7 @@ class Engine : public Chess::UCI::Endpoint {
public:
virtual ~Engine() override;
Engine(StringView command);
Engine(String command);
Engine(Engine const&) = delete;
Engine& operator=(Engine const&) = delete;
@ -51,7 +51,7 @@ private:
void quit();
void connect_to_engine_service();
DeprecatedString m_command;
String m_command;
Function<void(ErrorOr<Chess::Move>)> m_bestmove_callback;
bool m_connected { false };
};