diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-08-09 16:32:07 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-08-09 13:52:47 +0000 |
commit | b17b2461dd7f1e8eef94d510a1a77db26fad5728 (patch) | |
tree | 722a50a0f129d349bad92a3eb2a6c66d40cfb5b1 /src/plugins/qtsupport/qtversionmanager.cpp | |
parent | 670e54345c6ede1b5edac7a5351736c1c98e0f6c (diff) | |
download | qt-creator-b17b2461dd7f1e8eef94d510a1a77db26fad5728.tar.gz |
Simplify Utils::sort calls that sort by member
Change-Id: I0937e98014f223f42fbf1c6b2bd94fb109bc8870
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/qtversionmanager.cpp')
-rw-r--r-- | src/plugins/qtsupport/qtversionmanager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/qtsupport/qtversionmanager.cpp b/src/plugins/qtsupport/qtversionmanager.cpp index 211d8fa97b..fc3d30bcfc 100644 --- a/src/plugins/qtsupport/qtversionmanager.cpp +++ b/src/plugins/qtsupport/qtversionmanager.cpp @@ -556,9 +556,7 @@ void QtVersionManager::setNewQtVersions(QList<BaseQtVersion *> newVersions) // We want to preserve the same order as in the settings dialog // so we sort a copy QList<BaseQtVersion *> sortedNewVersions = newVersions; - Utils::sort(sortedNewVersions, [](const BaseQtVersion *l, const BaseQtVersion *r) { - return l->uniqueId() < r->uniqueId(); - }); + Utils::sort(sortedNewVersions, &BaseQtVersion::uniqueId); QList<int> addedVersions; QList<int> removedVersions; |