diff --git a/src/core/bufferfragment_p.h b/src/core/bufferfragment_p.h --- a/src/core/bufferfragment_p.h +++ b/src/core/bufferfragment_p.h @@ -150,7 +150,7 @@ return (other.size() != (int)len || memcmp(d, other.constData(), len) != 0); } - bool operator==(const BufferFragment &other) const + bool operator==(const BufferFragment other) const { return other.len == len && !memcmp(d, other.d, len); } @@ -195,7 +195,7 @@ unsigned int len; }; -uint qHash(const KConfigIniBackend::BufferFragment &fragment) +uint qHash(const KConfigIniBackend::BufferFragment fragment) { const uchar *p = reinterpret_cast(fragment.constData()); const int len = fragment.length(); diff --git a/src/core/kconfigini.cpp b/src/core/kconfigini.cpp --- 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 *cache) +static QByteArray lookup(const KConfigIniBackend::BufferFragment fragment, QHash *cache) { auto it = cache->constFind(fragment); if (it != cache->constEnd()) {