diff options
author | Nicolas Fella <nicolas.fella@gmx.de> | 2021-01-31 18:11:46 +0100 |
---|---|---|
committer | Nicolas Fella <nicolas.fella@gmx.de> | 2021-02-28 21:44:33 +0100 |
commit | 63c26290d25bc8ace158de94bcb764c764c476a9 (patch) | |
tree | 79bb7983e3da95ef7fed5af4d75a0456b06ef347 | |
parent | 5a048f1c911fad293ea98a979273db22cf1034a7 (diff) | |
download | kconfig-63c26290d25bc8ace158de94bcb764c764c476a9.tar.gz kconfig-63c26290d25bc8ace158de94bcb764c764c476a9.tar.bz2 |
Make QByteArray -> char* conversion explicit
The implicit conversion fails in Qt6
-rw-r--r-- | src/core/kconfigdata.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/kconfigdata.h b/src/core/kconfigdata.h index dd396fc8..0ca228fe 100644 --- a/src/core/kconfigdata.h +++ b/src/core/kconfigdata.h @@ -139,12 +139,12 @@ struct KEntryKey { */ inline bool operator<(const KEntryKey &k1, const KEntryKey &k2) { - int result = qstrcmp(k1.mGroup, k2.mGroup); + int result = qstrcmp(k1.mGroup.data(), k2.mGroup.data()); if (result != 0) { return result < 0; } - result = qstrcmp(k1.mKey, k2.mKey); + result = qstrcmp(k1.mKey.data(), k2.mKey.data()); if (result != 0) { return result < 0; } |