summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/vcsbaseclientsettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseclientsettings.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbaseclientsettings.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/plugins/vcsbase/vcsbaseclientsettings.cpp b/src/plugins/vcsbase/vcsbaseclientsettings.cpp
index 6ddb4a4b00..5fdd9f9b04 100644
--- a/src/plugins/vcsbase/vcsbaseclientsettings.cpp
+++ b/src/plugins/vcsbase/vcsbaseclientsettings.cpp
@@ -34,6 +34,8 @@
#include <QSettings>
#include <QVariant>
+using namespace Utils;
+
namespace {
class SettingValue
@@ -176,7 +178,7 @@ public:
QHash<QString, SettingValue> m_valueHash;
QVariantHash m_defaultValueHash;
QString m_settingsGroup;
- mutable Utils::FileName m_binaryFullPath;
+ mutable FileName m_binaryFullPath;
};
} // namespace Internal
@@ -352,12 +354,12 @@ QVariant::Type VcsBaseClientSettings::valueType(const QString &key) const
return QVariant::Invalid;
}
-Utils::FileName VcsBaseClientSettings::binaryPath() const
+FileName VcsBaseClientSettings::binaryPath() const
{
if (d->m_binaryFullPath.isEmpty()) {
- const Utils::FileNameList searchPaths
- = Utils::transform(searchPathList(), [](const QString &s) { return Utils::FileName::fromString(s); });
- d->m_binaryFullPath = Utils::Environment::systemEnvironment().searchInPath(
+ const FileNameList searchPaths
+ = Utils::transform(searchPathList(), [](const QString &s) { return FileName::fromString(s); });
+ d->m_binaryFullPath = Environment::systemEnvironment().searchInPath(
stringValue(binaryPathKey), searchPaths);
}
return d->m_binaryFullPath;
@@ -365,7 +367,7 @@ Utils::FileName VcsBaseClientSettings::binaryPath() const
QStringList VcsBaseClientSettings::searchPathList() const
{
- return stringValue(pathKey).split(Utils::HostOsInfo::pathListSeparator(), QString::SkipEmptyParts);
+ return stringValue(pathKey).split(HostOsInfo::pathListSeparator(), QString::SkipEmptyParts);
}
QString VcsBaseClientSettings::settingsGroup() const