From d88ddc97cc8c6ca56c6a2a09eac54f8c60884102 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Mon, 11 Nov 2024 17:54:48 +0100 Subject: [PATCH] Avoid an apparent compiler error in MSVC 2019 --- components/config/launchersettings.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/config/launchersettings.cpp b/components/config/launchersettings.cpp index 5d1d058406..27f03e7304 100644 --- a/components/config/launchersettings.cpp +++ b/components/config/launchersettings.cpp @@ -285,12 +285,12 @@ void Config::LauncherSettings::setContentList(const GameSettings& gameSettings) for (const QString& listName : getContentLists()) { const auto& listDirs = getDataDirectoryList(listName); -#ifdef Q_OS_WINDOWS - constexpr auto caseSensitivity = Qt::CaseInsensitive; -#else - constexpr auto caseSensitivity = Qt::CaseSensitive; -#endif constexpr auto compareDataDirectories = [](const SettingValue& dir, const QString& listDir) { +#ifdef Q_OS_WINDOWS + constexpr auto caseSensitivity = Qt::CaseInsensitive; +#else + constexpr auto caseSensitivity = Qt::CaseSensitive; +#endif return dir.originalRepresentation == listDir || QDir::cleanPath(dir.originalRepresentation).compare(QDir::cleanPath(listDir), caseSensitivity) == 0; };