aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2021-04-19 17:37:14 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2021-04-20 10:51:15 +0000
commit33634338b925490d1ee713d30670e5c3f96e9139 (patch)
tree0a5f063867ccf85136a5f1a8e43def481f70a0ac
parentf9ad1f5844af1e42c8de3cf10f6a9597924d9f9e (diff)
Fix build with older compilers
This amends d38fd9fa9. Change-Id: I55661497de04749dfd27134ef7c8c9cc436053e2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--src/lib/corelib/tools/msvcinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/tools/msvcinfo.cpp b/src/lib/corelib/tools/msvcinfo.cpp
index 83c53ba5c..ed94613d9 100644
--- a/src/lib/corelib/tools/msvcinfo.cpp
+++ b/src/lib/corelib/tools/msvcinfo.cpp
@@ -481,7 +481,7 @@ static std::vector<MSVC> installedCompilersHelper(Logger &logger)
vcVersions.push_back(vcVersion);
}
// sort the versions so the new one comes first
- std::sort(vcVersions.begin(), vcVersions.end(), std::greater());
+ std::sort(vcVersions.begin(), vcVersions.end(), std::greater<>());
for (const Version &vcVersion : vcVersions) {
QDir specificVcInstallDir = vcInstallDir;