diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-01 11:06:47 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-06 16:28:57 +0200 |
commit | 2ac45198cf101f094cf8d94f3a546a57624e59f5 (patch) | |
tree | d833a07af98f3897945706e84c50c0c92d7f5f66 /src/core/kconfig.cpp | |
parent | 081f559031fed7cde755e006b226cf06f33bd0f8 (diff) | |
download | kconfig-2ac45198cf101f094cf8d94f3a546a57624e59f5.tar.gz kconfig-2ac45198cf101f094cf8d94f3a546a57624e59f5.tar.bz2 |
Preincerment/predecrement operator where the post ones aren't needed
NO_CHANGELOG
Diffstat (limited to 'src/core/kconfig.cpp')
-rw-r--r-- | src/core/kconfig.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index 04608b0d..ed389ea3 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -177,16 +177,16 @@ QString KConfigPrivate::expandString(const QString &value) QStringRef aVarName; if (aValue[nEndPos] == QLatin1Char('{')) { while ((nEndPos <= aValue.length()) && (aValue[nEndPos] != QLatin1Char('}'))) { - nEndPos++; + ++nEndPos; } - nEndPos++; + ++nEndPos; aVarName = aValue.midRef(nDollarPos + 2, nEndPos - nDollarPos - 3); } else { while (nEndPos < aValue.length() && (aValue[nEndPos].isNumber() || aValue[nEndPos].isLetter() || aValue[nEndPos] == QLatin1Char('_'))) { - nEndPos++; + ++nEndPos; } aVarName = aValue.midRef(nDollarPos + 1, nEndPos - nDollarPos - 1); } @@ -219,7 +219,7 @@ QString KConfigPrivate::expandString(const QString &value) } else { // remove one of the dollar signs aValue.remove(nDollarPos, 1); - nDollarPos++; + ++nDollarPos; } nDollarPos = aValue.indexOf(QLatin1Char('$'), nDollarPos); } |