From 28d6f7f5250f98c7a8b236483589fa95f1363939 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Thu, 22 Apr 2021 10:53:02 +0200 Subject: [PATCH] Fix compiler warnings --- src/datamanager.cpp | 2 +- src/episodemodel.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/datamanager.cpp b/src/datamanager.cpp index 66b8a4f6..b5102f7f 100644 --- a/src/datamanager.cpp +++ b/src/datamanager.cpp @@ -85,7 +85,7 @@ DataManager::DataManager() Database::instance().execute(query); while (query.next()) { m_feedmap += query.value(QStringLiteral("url")).toString(); - m_feeds[query.value(QStringLiteral("url")).toString()] == nullptr; + m_feeds[query.value(QStringLiteral("url")).toString()] = nullptr; } //qDebug() << m_feedmap; diff --git a/src/episodemodel.cpp b/src/episodemodel.cpp index 86a822ff..033c6b31 100644 --- a/src/episodemodel.cpp +++ b/src/episodemodel.cpp @@ -15,6 +15,7 @@ EpisodeModel::EpisodeModel() // cannot know where the new entries will be inserted into the list (or that // maybe even items have been removed. connect(&DataManager::instance(), &DataManager::feedEntriesUpdated, this, [this](const QString &url) { + Q_UNUSED(url) // we have to reset the entire model in case entries are removed or added // because we have no way of knowing where those entries will be added/removed beginResetModel();