mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 13:15:34 +00:00
Avoid an apparent compiler error in MSVC 2019
This commit is contained in:
parent
0f0ed5a670
commit
d88ddc97cc
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||||
#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) {
|
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
|
return dir.originalRepresentation == listDir
|
||||||
|| QDir::cleanPath(dir.originalRepresentation).compare(QDir::cleanPath(listDir), caseSensitivity) == 0;
|
|| QDir::cleanPath(dir.originalRepresentation).compare(QDir::cleanPath(listDir), caseSensitivity) == 0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue