Commit f1792270 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port .toSet deprecated method

parent 6ac2cb0b
......@@ -141,7 +141,14 @@ void KConfigBasedRecipientPreferences::Private::writePrefs()
if (!m_dirty) {
return;
}
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
const QSet<QByteArray> keys = pgpPrefs.keys().toSet() + cmsPrefs.keys().toSet();
#else
const auto pgpPrefsKeys = pgpPrefs.keys();
const auto cmsPrefsKeys = cmsPrefs.keys();
const QSet<QByteArray> keys = QSet<QByteArray>(pgpPrefsKeys.begin(), pgpPrefsKeys.end()) + QSet<QByteArray>(cmsPrefsKeys.begin(), cmsPrefsKeys.end());
#endif
int n = 0;
for (const QByteArray &i : keys) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment