aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2019-08-25 05:30:46 +0200
committerFriedrich W. H. Kossebau <kossebau@kde.org>2019-08-25 05:30:46 +0200
commitcbb13f02350c09456771c45c4d06db5f8c91e317 (patch)
tree9eb9fc7c914c8b8d10b1767630a0107f945e168b /src/core
parent4c31900d665bd2c5618157fc4fdc8987616d9531 (diff)
downloadkconfig-cbb13f02350c09456771c45c4d06db5f8c91e317.tar.gz
kconfig-cbb13f02350c09456771c45c4d06db5f8c91e317.tar.bz2
String code optimization: use s.chop(x) instead of s.truncate(s.size()-x)
GIT_SILENT
Diffstat (limited to 'src/core')
-rw-r--r--src/core/kauthorized.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/kauthorized.cpp b/src/core/kauthorized.cpp
index 12068dc5..74159c46 100644
--- a/src/core/kauthorized.cpp
+++ b/src/core/kauthorized.cpp
@@ -46,7 +46,7 @@ public:
#define checkExactMatch(s, b) \
if (s.isEmpty()) b = true; \
else if (s[s.length()-1] == QLatin1Char('!')) \
- { b = false; s.truncate(s.length()-1); } \
+ { b = false; s.chop(1); } \
else b = true;
#define checkStartWildCard(s, b) \
if (s.isEmpty()) b = true; \