diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/kconfig.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index cc3700e1..8118ea51 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -174,21 +174,21 @@ QString KConfigPrivate::expandString(const QString &value)      int nDollarPos = aValue.indexOf(QLatin1Char('$'));      while (nDollarPos != -1 && nDollarPos + 1 < aValue.length()) {          // there is at least one $ -        if (aValue[nDollarPos + 1] != QLatin1Char('$')) { +        if (aValue.at(nDollarPos + 1) != QLatin1Char('$')) {              int nEndPos = nDollarPos + 1;              // the next character is not $ -            QStringRef aVarName; -            if (aValue[nEndPos] == QLatin1Char('{')) { +            QStringView aVarName; +            if (aValue.at(nEndPos) == QLatin1Char('{')) {                  while ((nEndPos <= aValue.length()) && (aValue[nEndPos] != QLatin1Char('}'))) {                      ++nEndPos;                  }                  ++nEndPos; -                aVarName = aValue.midRef(nDollarPos + 2, nEndPos - nDollarPos - 3); +                aVarName = QStringView(aValue).mid(nDollarPos + 2, nEndPos - nDollarPos - 3);              } else {                  while (nEndPos < aValue.length() && (aValue[nEndPos].isNumber() || aValue[nEndPos].isLetter() || aValue[nEndPos] == QLatin1Char('_'))) {                      ++nEndPos;                  } -                aVarName = aValue.midRef(nDollarPos + 1, nEndPos - nDollarPos - 1); +                aVarName = QStringView(aValue).mid(nDollarPos + 1, nEndPos - nDollarPos - 1);              }              QString env;              if (!aVarName.isEmpty()) {  | 
