aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilian Wolff <mail@milianw.de>2014-06-18 13:56:10 +0200
committerMilian Wolff <mail@milianw.de>2014-06-18 13:56:10 +0200
commit474fcb9b379d392f44ef80380a7ac1b908965112 (patch)
tree4bb9e72b72fbc324dd3a798687f8517f8d202d62
parentd6bcd49943e56bd48b793b8774e88435bf741088 (diff)
downloadkconfig-474fcb9b379d392f44ef80380a7ac1b908965112.tar.gz
kconfig-474fcb9b379d392f44ef80380a7ac1b908965112.tar.bz2
Remove duplicate comparison against group.
forward-port of commit 416559cdb86f9cacf4ea4ed7530cbbbdb427302f
-rw-r--r--src/core/kconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp
index a2598f8e..65edefa9 100644
--- a/src/core/kconfig.cpp
+++ b/src/core/kconfig.cpp
@@ -344,7 +344,7 @@ QStringList KConfigPrivate::keyListImpl(const QByteArray &theGroup) const
QSet<QString> tmp;
for (; it != theEnd && it.key().mGroup == theGroup; ++it) {
const KEntryKey &key = it.key();
- if (key.mGroup == theGroup && !key.mKey.isNull() && !it->bDeleted) {
+ if (!key.mKey.isNull() && !it->bDeleted) {
tmp << QString::fromUtf8(key.mKey);
}
}