diff options
author | hjk <hjk@qt.io> | 2019-08-14 12:32:11 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-08-14 11:53:32 +0000 |
commit | 835ff7e692932187e1e4e4d87d21b9328db7713a (patch) | |
tree | f2ce2be71570ef8b6c58935bdc274f6ff30689ea /src/plugins/vcsbase | |
parent | d2a0b13252683a275c4e8f48b6ff07b4eaebfee9 (diff) |
Use pointer to member or member function with transform
... when possible. More compact.
Change-Id: I81410b7e6d523b9405c87f70a474ded1fa9ce960
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/vcsbase')
-rw-r--r-- | src/plugins/vcsbase/vcsbaseclientsettings.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/vcsbase/vcsbaseclientsettings.cpp b/src/plugins/vcsbase/vcsbaseclientsettings.cpp index ebf81d5123d..60bd7548259 100644 --- a/src/plugins/vcsbase/vcsbaseclientsettings.cpp +++ b/src/plugins/vcsbase/vcsbaseclientsettings.cpp @@ -354,8 +354,7 @@ QVariant::Type VcsBaseClientSettings::valueType(const QString &key) const FilePath VcsBaseClientSettings::binaryPath() const { if (d->m_binaryFullPath.isEmpty()) { - const FilePathList searchPaths - = Utils::transform(searchPathList(), [](const QString &s) { return FilePath::fromString(s); }); + const FilePathList searchPaths = Utils::transform(searchPathList(), &FilePath::fromString); d->m_binaryFullPath = Environment::systemEnvironment().searchInPath( stringValue(binaryPathKey), searchPaths); } |