From f0c6e696fd450ae3fde059930cd9053e49aef518 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 19 Jan 2021 14:15:09 -0500 Subject: [PATCH] TraversalProto: Convert typedefs into using aliases Same behavior, more straightforward reading. --- Source/Core/Common/TraversalProto.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Core/Common/TraversalProto.h b/Source/Core/Common/TraversalProto.h index d1fd082586..3d8e34de73 100644 --- a/Source/Core/Common/TraversalProto.h +++ b/Source/Core/Common/TraversalProto.h @@ -1,12 +1,14 @@ // This file is public domain, in case it's useful to anyone. -comex #pragma once + #include +#include #include "Common/CommonTypes.h" -#define NETPLAY_CODE_SIZE 8 -typedef std::array TraversalHostId; -typedef u64 TraversalRequestId; +constexpr size_t NETPLAY_CODE_SIZE = 8; +using TraversalHostId = std::array; +using TraversalRequestId = u64; enum class TraversalPacketType : u8 {