mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
LibChess: Change UCI::Command::Type to enum class
This commit is contained in:
parent
0eaed09517
commit
35af46ee62
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ void Endpoint::send_command(Command const& command)
|
|||
|
||||
void Endpoint::event(Core::Event& event)
|
||||
{
|
||||
switch (event.type()) {
|
||||
switch (static_cast<Command::Type>(event.type())) {
|
||||
case Command::Type::UCI:
|
||||
return handle_uci();
|
||||
case Command::Type::Debug:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue