1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Use QSysInfo to obtain cpu architecture

This commit is contained in:
David Rosca 2016-06-14 13:13:53 +02:00
parent 3ea85213e5
commit cfe49a5719

View File

@ -938,31 +938,7 @@ QString QzTools::operatingSystem()
QString QzTools::cpuArchitecture() QString QzTools::cpuArchitecture()
{ {
#if defined(__x86_64__) || defined(_M_X64) return QSysInfo::currentCpuArchitecture();
return QSL("x86_64");
#endif
#if defined(_M_IX86)
return QSL("x86");
#endif
#if defined(__i686__)
return QSL("i686");
#endif
#if defined(__i586__)
return QSL("i586");
#endif
#if defined(__i486__)
return QSL("i486");
#endif
#if defined(__i386__)
return QSL("i386");
#endif
#if defined(__aarch64__)
return QSL("arm64");
#endif
#if defined(__arm__) || defined(_M_ARM)
return QSL("arm");
#endif
return QString();
} }
QString QzTools::operatingSystemLong() QString QzTools::operatingSystemLong()