Skip to content

Commit

Permalink
Avoid an apparent compiler error in MSVC 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
Assumeru committed Nov 11, 2024
1 parent 0f0ed5a commit d88ddc9
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 d88ddc9

Please sign in to comment.