From e6aed18d59ac1f44b103872c50d1229c2f3387fd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 31 May 2020 06:59:25 -0400 Subject: [PATCH] assetnameparser: Convert typdefs into using aliases --- assetnameparser/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/assetnameparser/main.cpp b/assetnameparser/main.cpp index 3027a5b3c..af86b8bf0 100644 --- a/assetnameparser/main.cpp +++ b/assetnameparser/main.cpp @@ -135,19 +135,19 @@ struct SAsset { enum class FileLockType { None = 0, Read, Write }; #if IS_UCS2 -typedef wchar_t SystemChar; -typedef std::wstring SystemString; +using SystemChar = wchar_t; +using SystemString = std::wstring; #ifndef _SYS_STR #define _SYS_STR(val) L##val #endif -typedef struct _stat Sstat; +using Sstat = struct _stat; #else -typedef char SystemChar; -typedef std::string SystemString; +using SystemChar = char; +using SystemString = std::string; #ifndef _SYS_STR #define _SYS_STR(val) val #endif -typedef struct stat Sstat; +using Sstat = struct stat; #endif FILE* Fopen(const SystemChar* path, const SystemChar* mode, FileLockType lock = FileLockType::None) {