mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:47:44 +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
|
@ -15,7 +15,7 @@ namespace Chess::UCI {
|
|||
|
||||
class Command : public Core::Event {
|
||||
public:
|
||||
enum Type {
|
||||
enum class Type {
|
||||
// GUI to engine commands.
|
||||
UCI = 12000,
|
||||
Debug,
|
||||
|
@ -40,7 +40,7 @@ public:
|
|||
};
|
||||
|
||||
explicit Command(Type type)
|
||||
: Core::Event(type)
|
||||
: Core::Event(to_underlying(type))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue