Rename EnumMap to EnumArray after nazarautils update
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include <Nazara/Network/Algorithm.hpp>
|
||||
#include <Nazara/Network/NetBuffer.hpp>
|
||||
#include <Nazara/Network/Posix/IpAddressImpl.hpp>
|
||||
#include <NazaraUtils/EnumMap.hpp>
|
||||
#include <NazaraUtils/EnumArray.hpp>
|
||||
#include <NazaraUtils/StackArray.hpp>
|
||||
#include <cstring>
|
||||
#include <poll.h>
|
||||
@@ -1018,7 +1018,7 @@ namespace Nz
|
||||
{
|
||||
NazaraAssert(protocol <= NetProtocol::Max, "Protocol has value out of enum");
|
||||
|
||||
constexpr EnumMap<NetProtocol, int> addressFamily {
|
||||
constexpr EnumArray<NetProtocol, int> addressFamily {
|
||||
AF_UNSPEC, //< NetProtocol::Any
|
||||
AF_INET, //< NetProtocol::IPv4
|
||||
AF_INET6, //< NetProtocol::IPv6
|
||||
@@ -1032,7 +1032,7 @@ namespace Nz
|
||||
{
|
||||
NazaraAssert(type <= SocketType::Max, "Socket type has value out of enum");
|
||||
|
||||
constexpr EnumMap<SocketType, int> socketType {
|
||||
constexpr EnumArray<SocketType, int> socketType {
|
||||
SOCK_RAW, //< SocketType::Raw
|
||||
SOCK_STREAM, //< SocketType::TCP
|
||||
SOCK_DGRAM, //< SocketType::UDP
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <Nazara/Core/Log.hpp>
|
||||
#include <Nazara/Core/StringExt.hpp>
|
||||
#include <Nazara/Network/Win32/IpAddressImpl.hpp>
|
||||
#include <NazaraUtils/EnumMap.hpp>
|
||||
#include <NazaraUtils/EnumArray.hpp>
|
||||
#include <NazaraUtils/StackArray.hpp>
|
||||
|
||||
// Some compilers (older versions of MinGW) lack Mstcpip.h which defines some structs/defines
|
||||
@@ -1000,7 +1000,7 @@ namespace Nz
|
||||
{
|
||||
NazaraAssert(protocol <= NetProtocol::Max, "Protocol has value out of enum");
|
||||
|
||||
constexpr EnumMap<NetProtocol, int> addressFamily {
|
||||
constexpr EnumArray<NetProtocol, int> addressFamily {
|
||||
AF_UNSPEC, //< NetProtocol::Any
|
||||
AF_INET, //< NetProtocol::IPv4
|
||||
AF_INET6, //< NetProtocol::IPv6
|
||||
@@ -1014,7 +1014,7 @@ namespace Nz
|
||||
{
|
||||
NazaraAssert(type <= SocketType::Max, "Socket type has value out of enum");
|
||||
|
||||
constexpr EnumMap<SocketType, int> socketType {
|
||||
constexpr EnumArray<SocketType, int> socketType {
|
||||
SOCK_RAW, //< SocketType::Raw
|
||||
SOCK_STREAM, //< SocketType::TCP
|
||||
SOCK_DGRAM, //< SocketType::UDP
|
||||
|
||||
Reference in New Issue
Block a user