mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
We don't need to capture constexpr stuff
This commit is contained in:
parent
7640b6bcf4
commit
31c84e0407
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ void Config::LauncherSettings::setContentList(const GameSettings& gameSettings)
|
||||||
#else
|
#else
|
||||||
constexpr auto caseSensitivity = Qt::CaseSensitive;
|
constexpr auto caseSensitivity = Qt::CaseSensitive;
|
||||||
#endif
|
#endif
|
||||||
constexpr auto compareDataDirectories = [caseSensitivity](const SettingValue& dir, const QString& listDir) {
|
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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue