diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2021-12-17 18:03:40 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2021-12-17 18:03:40 +0200 |
commit | 428261e2932e9413b1ed5322848e8df067f59ee1 (patch) | |
tree | b222d375d97bb64c307a6b71e264d38be1cd8fad /src | |
parent | 10c4a4b4bdfdd468e52ae0fbbf84c77b64df2f8f (diff) | |
download | kconfig-428261e2932e9413b1ed5322848e8df067f59ee1.tar.gz kconfig-428261e2932e9413b1ed5322848e8df067f59ee1.tar.bz2 |
Fix build on Windows
Both GCC and Clang don't require a const integral value to be captured
explicitly to be used in a lambda, but of course one compiler thinks
otherwise...
Thanks to Ömer Fadıl Usta for the heads up.
GIT_SILENT
Diffstat (limited to 'src')
-rw-r--r-- | src/core/kdesktopfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/kdesktopfile.cpp b/src/core/kdesktopfile.cpp index 644646df..aa510dec 100644 --- a/src/core/kdesktopfile.cpp +++ b/src/core/kdesktopfile.cpp @@ -123,7 +123,7 @@ bool KDesktopFile::isAuthorizedDesktopFile(const QString &path) // Check if the .desktop file is installed as part of KDE or XDG. const QStringList appsDirs = QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation); - auto it = std::find_if(appsDirs.cbegin(), appsDirs.cend(), [&realPath](const QString &prefix) { + auto it = std::find_if(appsDirs.cbegin(), appsDirs.cend(), [&realPath, sensitivity](const QString &prefix) { QFileInfo info(prefix); return info.exists() && info.isDir() && realPath.startsWith(info.canonicalFilePath(), sensitivity); }); |