1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 21:15:36 +00:00

Avoid an apparent compiler error in MSVC 2019

This commit is contained in:
Evil Eye 2024-11-11 17:54:48 +01:00
parent 0f0ed5a670
commit d88ddc97cc

View file

@ -285,12 +285,12 @@ void Config::LauncherSettings::setContentList(const GameSettings& gameSettings)
for (const QString& listName : getContentLists()) for (const QString& listName : getContentLists())
{ {
const auto& listDirs = getDataDirectoryList(listName); const auto& listDirs = getDataDirectoryList(listName);
constexpr auto compareDataDirectories = [](const SettingValue& dir, const QString& listDir) {
#ifdef Q_OS_WINDOWS #ifdef Q_OS_WINDOWS
constexpr auto caseSensitivity = Qt::CaseInsensitive; constexpr auto caseSensitivity = Qt::CaseInsensitive;
#else #else
constexpr auto caseSensitivity = Qt::CaseSensitive; constexpr auto caseSensitivity = Qt::CaseSensitive;
#endif #endif
constexpr auto compareDataDirectories = [](const SettingValue& dir, const QString& listDir) {
return dir.originalRepresentation == listDir return dir.originalRepresentation == listDir
|| QDir::cleanPath(dir.originalRepresentation).compare(QDir::cleanPath(listDir), caseSensitivity) == 0; || QDir::cleanPath(dir.originalRepresentation).compare(QDir::cleanPath(listDir), caseSensitivity) == 0;
}; };