Commit c253ebc2 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix compilation with KF 5.90

The new overload that is only shown when deprecations are disabled was introduced in KF 5.91.
To avoid preprocessor version guards, we can just use auto here.
parent ce319fa6
Pipeline #233031 passed with stage
in 14 minutes and 26 seconds
......@@ -121,7 +121,7 @@ SnippetView::SnippetView(KateSnippetGlobal *plugin, KTextEditor::MainWindow *mai
m_getNewStuffAction = new KNSWidgets::Action(i18n("Get New Snippets"), QStringLiteral(":/katesnippets/ktexteditor_codesnippets_core.knsrc"), this);
connect(m_getNewStuffAction, &KNSWidgets::Action::dialogFinished, this, [this](const QList<KNSCore::Entry> &changedEntries) {
connect(m_getNewStuffAction, &KNSWidgets::Action::dialogFinished, this, [](const auto &changedEntries) {
for (const auto &entry : changedEntries) {
const auto uninstalledFiles = entry.uninstalledFiles();
for (const QString &path : uninstalledFiles) {
Supports Markdown
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