Convert all remaining enums to enum classes (!)

This commit is contained in:
Jérôme Leclercq
2021-05-25 00:08:50 +02:00
parent 8cdd0b51cb
commit 874fb3542e
122 changed files with 1082 additions and 2169 deletions

View File

@@ -29,23 +29,23 @@ namespace Nz
inline bool ENetHost::Create(NetProtocol protocol, UInt16 port, std::size_t peerCount, std::size_t channelCount)
{
NazaraAssert(protocol != NetProtocol_Unknown, "Invalid protocol");
NazaraAssert(protocol != NetProtocol::Unknown, "Invalid protocol");
IpAddress any;
switch (protocol)
{
case NetProtocol_Unknown:
case NetProtocol::Unknown:
NazaraInternalError("Invalid protocol");
return false;
case NetProtocol_IPv4:
case NetProtocol::IPv4:
any = IpAddress::AnyIpV4;
break;
case NetProtocol_Any:
case NetProtocol::Any:
m_isUsingDualStack = true;
// fallthrough
case NetProtocol_IPv6:
case NetProtocol::IPv6:
any = IpAddress::AnyIpV6;
break;
}