From 57296d5c85a426918a634b15f814a7435b899d32 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 5 Jul 2021 00:33:27 +0200 Subject: 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. --- src/core/kconfigdata_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.1