Fix minor warnings and get rid of 'portable_endian_bswap.h' (in house

impl instead)
This commit is contained in:
SimoneN64
2024-09-25 21:21:49 +02:00
parent bcdf50e180
commit 56b9d69861
4 changed files with 58 additions and 153 deletions

View File

@@ -6,15 +6,15 @@
enum class CompositorCategory { Windows, MacOS, XCB, Wayland };
static inline CompositorCategory GetOSCompositorCategory() {
static CompositorCategory GetOSCompositorCategory() {
const QString platform_name = QGuiApplication::platformName();
if (platform_name == QStringLiteral("windows"))
return CompositorCategory::Windows;
else if (platform_name == QStringLiteral("xcb"))
if (platform_name == QStringLiteral("xcb"))
return CompositorCategory::XCB;
else if (platform_name == QStringLiteral("wayland") || platform_name == QStringLiteral("wayland-egl"))
if (platform_name == QStringLiteral("wayland") || platform_name == QStringLiteral("wayland-egl"))
return CompositorCategory::Wayland;
else if (platform_name == QStringLiteral("cocoa") || platform_name == QStringLiteral("ios"))
if (platform_name == QStringLiteral("cocoa") || platform_name == QStringLiteral("ios"))
return CompositorCategory::MacOS;
Util::error("Unknown Qt platform!");