Skip to content

Commit

Permalink
Merge branch '2019noscope' into 'master'
Browse files Browse the repository at this point in the history
Avoid an apparent compiler error in MSVC 2019

See merge request OpenMW/openmw!4451
  • Loading branch information
psi29a committed Nov 11, 2024
2 parents 0f0ed5a + d88ddc9 commit 2c51bde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/config/launchersettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ void Config::LauncherSettings::setContentList(const GameSettings& gameSettings)
for (const QString& listName : getContentLists())
{
const auto& listDirs = getDataDirectoryList(listName);
constexpr auto compareDataDirectories = [](const SettingValue& dir, const QString& listDir) {
#ifdef Q_OS_WINDOWS
constexpr auto caseSensitivity = Qt::CaseInsensitive;
constexpr auto caseSensitivity = Qt::CaseInsensitive;
#else
constexpr auto caseSensitivity = Qt::CaseSensitive;
constexpr auto caseSensitivity = Qt::CaseSensitive;
#endif
constexpr auto compareDataDirectories = [](const SettingValue& dir, const QString& listDir) {
return dir.originalRepresentation == listDir
|| QDir::cleanPath(dir.originalRepresentation).compare(QDir::cleanPath(listDir), caseSensitivity) == 0;
};
Expand Down

0 comments on commit 2c51bde

Please sign in to comment.