From 2b11558279ecb57cedbf023825317a93b42cebb7 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Mon, 19 Apr 2021 16:51:33 +0200 Subject: [PATCH] Mark some signal parameters as unused --- src/episodemodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/episodemodel.cpp b/src/episodemodel.cpp index f2590321..86a822ff 100644 --- a/src/episodemodel.cpp +++ b/src/episodemodel.cpp @@ -52,6 +52,7 @@ void EpisodeModel::setType(EpisodeModel::Type type) m_type = type; if (m_type == EpisodeModel::New) { connect(&DataManager::instance(), &DataManager::newEntryCountChanged, 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(); @@ -59,6 +60,7 @@ void EpisodeModel::setType(EpisodeModel::Type type) }); } else if (m_type == EpisodeModel::Unread) { connect(&DataManager::instance(), &DataManager::unreadEntryCountChanged, 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(); @@ -67,6 +69,7 @@ void EpisodeModel::setType(EpisodeModel::Type type) } else if (m_type == EpisodeModel::Downloaded) { // TODO: this needs to be removed !!!!!! connect(&DataManager::instance(), &DataManager::downloadCountChanged, 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();