CPUDetect: Make CPUVendor enum an enum class

Avoids dumping the enum contents into the global namespace.
This commit is contained in:
Lioncash
2018-04-01 17:43:40 -04:00
parent bf8ffe5bfb
commit fd9eab73fb
3 changed files with 11 additions and 11 deletions

View File

@ -7,17 +7,17 @@
#include <string>
enum CPUVendor
enum class CPUVendor
{
VENDOR_INTEL = 0,
VENDOR_AMD = 1,
VENDOR_ARM = 2,
VENDOR_OTHER = 3,
Intel,
AMD,
ARM,
Other,
};
struct CPUInfo
{
CPUVendor vendor = VENDOR_INTEL;
CPUVendor vendor = CPUVendor::Intel;
char cpu_string[0x41] = {};
char brand_string[0x21] = {};