aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Kushnir <igorkuo@gmail.com>2021-12-25 09:37:04 +0200
committerIgor Kushnir <igorkuo@gmail.com>2022-01-02 20:20:55 +0200
commit9ca42038a09307b04a4e6be39b60f25c23105fe1 (patch)
treeb39efcaa4b0eb2f2644b28d04d8683b83607b427
parentaf6b3a375d99ce5ec5ecf5a30c6bc2b1b9db6102 (diff)
downloadkconfig-9ca42038a09307b04a4e6be39b60f25c23105fe1.tar.gz
kconfig-9ca42038a09307b04a4e6be39b60f25c23105fe1.tar.bz2
KConfigPrivate::copyGroup: remove redundant entryMap lookup
-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 b602ce47..025a8b1d 100644
--- a/src/core/kconfig.cpp
+++ b/src/core/kconfig.cpp
@@ -163,7 +163,7 @@ void KConfigPrivate::copyGroup(const QByteArray &source, const QByteArray &desti
newKey.mGroup.replace(0, len, destination);
}
- KEntry entry = entryMap[entryMapIt.key()];
+ KEntry entry = entryMapIt.value();
dirtied = entry.bDirty = flags & KConfigBase::Persistent;
if (flags & KConfigBase::Global) {