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

Libraries: Change enums to enum classes in LibCards

This commit is contained in:
Lenny Maiorani 2022-03-17 15:01:03 -06:00 committed by Andreas Kling
parent d3893a73fb
commit 56046d3f9b
6 changed files with 43 additions and 43 deletions

View file

@ -112,14 +112,14 @@ Card::Card(Type type, uint8_t value)
auto const& symbol = [&]() -> Gfx::CharacterBitmap const& {
switch (m_type) {
case Diamonds:
case Type::Diamonds:
return s_diamond;
case Clubs:
case Type::Clubs:
return s_club;
break;
case Spades:
case Type::Spades:
return s_spade;
case Hearts:
case Type::Hearts:
return s_heart;
default:
VERIFY_NOT_REACHED();