aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/namevalueitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/utils/namevalueitem.cpp')
-rw-r--r--src/libs/utils/namevalueitem.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libs/utils/namevalueitem.cpp b/src/libs/utils/namevalueitem.cpp
index 5fd3bc39eb..adc7ff5afc 100644
--- a/src/libs/utils/namevalueitem.cpp
+++ b/src/libs/utils/namevalueitem.cpp
@@ -118,14 +118,6 @@ static QString expand(const NameValueDictionary *dictionary, QString value)
return value;
}
-enum : char {
-#ifdef Q_OS_WIN
- pathSepC = ';'
-#else
- pathSepC = ':'
-#endif
-};
-
void NameValueItem::apply(NameValueDictionary *dictionary, Operation op) const
{
switch (op) {
@@ -142,7 +134,7 @@ void NameValueItem::apply(NameValueDictionary *dictionary, Operation op) const
const NameValueDictionary::const_iterator it = dictionary->constFind(name);
if (it != dictionary->constEnd()) {
QString v = dictionary->value(it);
- const QChar pathSep{QLatin1Char(pathSepC)};
+ const QChar pathSep = HostOsInfo::pathListSeparator();
int sepCount = 0;
if (v.startsWith(pathSep))
++sepCount;
@@ -162,7 +154,7 @@ void NameValueItem::apply(NameValueDictionary *dictionary, Operation op) const
const NameValueDictionary::const_iterator it = dictionary->constFind(name);
if (it != dictionary->constEnd()) {
QString v = dictionary->value(it);
- const QChar pathSep{QLatin1Char(pathSepC)};
+ const QChar pathSep = HostOsInfo::pathListSeparator();
int sepCount = 0;
if (v.endsWith(pathSep))
++sepCount;