aboutsummaryrefslogtreecommitdiff
path: root/src/core/bufferfragment_p.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2021-02-01 11:06:47 +0200
committerAhmad Samir <a.samirh78@gmail.com>2021-02-06 16:28:57 +0200
commit2ac45198cf101f094cf8d94f3a546a57624e59f5 (patch)
treed833a07af98f3897945706e84c50c0c92d7f5f66 /src/core/bufferfragment_p.h
parent081f559031fed7cde755e006b226cf06f33bd0f8 (diff)
downloadkconfig-2ac45198cf101f094cf8d94f3a546a57624e59f5.tar.gz
kconfig-2ac45198cf101f094cf8d94f3a546a57624e59f5.tar.bz2
Preincerment/predecrement operator where the post ones aren't needed
NO_CHANGELOG
Diffstat (limited to 'src/core/bufferfragment_p.h')
-rw-r--r--src/core/bufferfragment_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/bufferfragment_p.h b/src/core/bufferfragment_p.h
index ba100ef7..3edbb6b6 100644
--- a/src/core/bufferfragment_p.h
+++ b/src/core/bufferfragment_p.h
@@ -64,11 +64,11 @@ public:
void trim()
{
while (bf_isspace(*d) && len > 0) {
- d++;
- len--;
+ ++d;
+ --len;
}
while (len > 0 && bf_isspace(d[len - 1])) {
- len--;
+ --len;
}
}
@@ -160,7 +160,7 @@ public:
if (d[from] == c) {
return from;
} else {
- from--;
+ --from;
}
return -1;
}