diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-03-11 23:37:25 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-03-11 23:37:31 +0100 |
commit | 7e55f08343ef888dbdcd7a521f437102f95681ab (patch) | |
tree | db55ece64a89a8cbce5c2a47a7a357585751f9db /src/core/kconfigini.cpp | |
parent | 5a2ca3652ff6deb450470f95863bfbff7c3da00d (diff) | |
download | kconfig-7e55f08343ef888dbdcd7a521f437102f95681ab.tar.gz kconfig-7e55f08343ef888dbdcd7a521f437102f95681ab.tar.bz2 |
Remove reference from const KConfigIniBackend::BufferFragment &
Summary: According to clazy since KConfigIniBackend::BufferFragment is very small it's faster to just copy it
Reviewers: apol
Reviewed By: apol
Subscribers: apol, kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D19666
Diffstat (limited to 'src/core/kconfigini.cpp')
-rw-r--r-- | src/core/kconfigini.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/kconfigini.cpp b/src/core/kconfigini.cpp index 26d8390c..af306502 100644 --- a/src/core/kconfigini.cpp +++ b/src/core/kconfigini.cpp @@ -44,7 +44,7 @@ KCONFIGCORE_EXPORT bool kde_kiosk_exception = false; // flag to disable kiosk restrictions -static QByteArray lookup(const KConfigIniBackend::BufferFragment &fragment, QHash<KConfigIniBackend::BufferFragment, QByteArray> *cache) +static QByteArray lookup(const KConfigIniBackend::BufferFragment fragment, QHash<KConfigIniBackend::BufferFragment, QByteArray> *cache) { auto it = cache->constFind(fragment); if (it != cache->constEnd()) { |