From 31c84e0407883faadae17a0bbc5190eb76b3f18f Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Fri, 25 Oct 2024 00:49:46 +0000 Subject: [PATCH] We don't need to capture constexpr stuff --- components/config/launchersettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/config/launchersettings.cpp b/components/config/launchersettings.cpp index 8c18d60210..30398038aa 100644 --- a/components/config/launchersettings.cpp +++ b/components/config/launchersettings.cpp @@ -269,7 +269,7 @@ void Config::LauncherSettings::setContentList(const GameSettings& gameSettings) #else constexpr auto caseSensitivity = Qt::CaseSensitive; #endif - constexpr auto compareDataDirectories = [caseSensitivity](const SettingValue& dir, const QString& listDir) { + constexpr auto compareDataDirectories = [](const SettingValue& dir, const QString& listDir) { return dir.originalRepresentation == listDir || QDir::cleanPath(dir.originalRepresentation).compare(QDir::cleanPath(listDir), caseSensitivity) == 0; };