diff options
author | Aleix Pol <aleixpol@kde.org> | 2021-07-05 00:33:27 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2021-07-05 00:50:28 +0200 |
commit | 57296d5c85a426918a634b15f814a7435b899d32 (patch) | |
tree | f9795959f73ea3e71dc7970ec8c25aa142f33ad3 | |
parent | 93c9398cdcf147c5c5e1a89662ffd047e36927ac (diff) | |
download | kconfig-57296d5c85a426918a634b15f814a7435b899d32.tar.gz kconfig-57296d5c85a426918a634b15f814a7435b899d32.tar.bz2 |
Use specific API to compare QByteArrays
At the moment we are taking a bit of a detour by converting to char*.
Not a bit deal but reads better and ends up being less calls.
-rw-r--r-- | src/core/kconfigdata_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/kconfigdata_p.h b/src/core/kconfigdata_p.h index 3554568e..5e5246f3 100644 --- a/src/core/kconfigdata_p.h +++ b/src/core/kconfigdata_p.h @@ -139,12 +139,12 @@ struct KEntryKey { */ inline bool operator<(const KEntryKey &k1, const KEntryKey &k2) { - int result = qstrcmp(k1.mGroup.data(), k2.mGroup.data()); + int result = k1.mGroup.compare(k2.mGroup); if (result != 0) { return result < 0; } - result = qstrcmp(k1.mKey.data(), k2.mKey.data()); + result = k1.mKey.compare(k2.mKey); if (result != 0) { return result < 0; } |