diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-05-28 11:05:37 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-05-28 13:45:20 +0000 |
commit | 6e66b2a078c53c3c2ce18578acfd346274213762 (patch) | |
tree | f775c74fcf1a149654ac51e2084259bae81ea621 /src/plugins/projectexplorer/toolchainmanager.cpp | |
parent | 8d9942300f715a4b9355062c3b709698ec6ea1f1 (diff) | |
download | qt-creator-6e66b2a078c53c3c2ce18578acfd346274213762.tar.gz |
Remove some lambdas from Utils::transform calls
It is often possible to user (member) functions or members directly.
That improves readablility and potentially reduces the total number of
symbols.
Also use qobject_container_cast at places where it is appropriate.
Change-Id: Ia2591bca356591e001e2c53eeebcf753e5bc3c37
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/toolchainmanager.cpp')
-rw-r--r-- | src/plugins/projectexplorer/toolchainmanager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/toolchainmanager.cpp b/src/plugins/projectexplorer/toolchainmanager.cpp index 7bc3274f21..acaeb8b7d7 100644 --- a/src/plugins/projectexplorer/toolchainmanager.cpp +++ b/src/plugins/projectexplorer/toolchainmanager.cpp @@ -223,9 +223,7 @@ void ToolChainManager::deregisterToolChain(ToolChain *tc) QSet<Core::Id> ToolChainManager::allLanguages() { - return Utils::transform<QSet>(d->m_languages, [](const LanguageDisplayPair &pair) { - return pair.id; - }); + return Utils::transform<QSet>(d->m_languages, &LanguageDisplayPair::id); } bool ToolChainManager::registerLanguage(const Core::Id &language, const QString &displayName) |