diff options
author | Laurent Montel <montel@kde.org> | 2019-12-04 13:10:04 +0100 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2019-12-04 13:10:32 +0100 |
commit | 991d8de6ad84d19392b84c2c1c21b1da01b13569 (patch) | |
tree | 9343624ff5f62c60c1acb0ee7afbb3725063cdb0 /src/core/kconfig.cpp | |
parent | 719920708b696ef5a5dbc3360672fb0c4cc282e4 (diff) | |
download | kconfig-991d8de6ad84d19392b84c2c1c21b1da01b13569.tar.gz kconfig-991d8de6ad84d19392b84c2c1c21b1da01b13569.tar.bz2 |
Don't use nullptr as flag. Make it compile against qt5.15
Diffstat (limited to 'src/core/kconfig.cpp')
-rw-r--r-- | src/core/kconfig.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index 140872b0..21f576b2 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -379,7 +379,7 @@ QMap<QString, QString> KConfig::entryMap(const QString &aGroup) const const QByteArray theGroup(aGroup.isEmpty() ? "<default>" : aGroup.toUtf8()); const KEntryMapConstIterator theEnd = d->entryMap.constEnd(); - KEntryMapConstIterator it = d->entryMap.findEntry(theGroup, nullptr, nullptr); + KEntryMapConstIterator it = d->entryMap.findEntry(theGroup, {}, {}); if (it != theEnd) { ++it; // advance past the special group entry marker @@ -858,7 +858,7 @@ bool KConfig::isImmutable() const bool KConfig::isGroupImmutableImpl(const QByteArray &aGroup) const { Q_D(const KConfig); - return isImmutable() || d->entryMap.getEntryOption(aGroup, nullptr, nullptr, KEntryMap::EntryImmutable); + return isImmutable() || d->entryMap.getEntryOption(aGroup, {},{}, KEntryMap::EntryImmutable); } #if KCONFIGCORE_BUILD_DEPRECATED_SINCE(4, 0) @@ -889,7 +889,7 @@ const KConfigGroup KConfig::groupImpl(const QByteArray &group) const KEntryMap::EntryOptions convertToOptions(KConfig::WriteConfigFlags flags) { - KEntryMap::EntryOptions options = nullptr; + KEntryMap::EntryOptions options = {}; if (flags & KConfig::Persistent) { options |= KEntryMap::EntryDirty; |