aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-24 19:29:01 -0800
committerChris Robinson <[email protected]>2018-12-24 19:29:01 -0800
commitfbae41020d8968d0e65af08584df4736b5ed7239 (patch)
treeb2bb3297e5e5b4cf348e4e9379dfa4366dd8aa2d /Alc/helpers.cpp
parent194e7ff815d744830c8aaedfb0d32ed3c3d01645 (diff)
Remove extraneous typedef, struct, and enum keywords
Diffstat (limited to 'Alc/helpers.cpp')
-rw-r--r--Alc/helpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/helpers.cpp b/Alc/helpers.cpp
index 17942855..beee4bff 100644
--- a/Alc/helpers.cpp
+++ b/Alc/helpers.cpp
@@ -125,13 +125,13 @@ DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_GUID, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x
#if defined(HAVE_GCC_GET_CPUID) && (defined(__i386__) || defined(__x86_64__) || \
defined(_M_IX86) || defined(_M_X64))
-typedef unsigned int reg_type;
+using reg_type = unsigned int;
static inline void get_cpuid(int f, reg_type *regs)
{ __get_cpuid(f, &regs[0], &regs[1], &regs[2], &regs[3]); }
#define CAN_GET_CPUID
#elif defined(HAVE_CPUID_INTRINSIC) && (defined(__i386__) || defined(__x86_64__) || \
defined(_M_IX86) || defined(_M_X64))
-typedef int reg_type;
+using reg_type = int;
static inline void get_cpuid(int f, reg_type *regs)
{ (__cpuid)(regs, f); }
#define CAN_GET_CPUID