summaryrefslogtreecommitdiffstats
path: root/qt-models/filtermodels.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-05-21 17:53:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-21 12:48:04 -0700
commitb0e48a5e8f8b558ed7377d941ddfb96c02387a1f (patch)
tree077499cc149536b354dfea56540e40fa3e4975aa /qt-models/filtermodels.cpp
parent52031f0abaa87d09c56ecaf5872fa58572ecc9f9 (diff)
downloadsubsurface-b0e48a5e8f8b558ed7377d941ddfb96c02387a1f.tar.gz
qt-models: Change Q_UNUSED to no parameter name
C++ permits use of parameters without name, which signals unused Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'qt-models/filtermodels.cpp')
-rw-r--r--qt-models/filtermodels.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp
index ad6ce783d..34345f381 100644
--- a/qt-models/filtermodels.cpp
+++ b/qt-models/filtermodels.cpp
@@ -132,11 +132,8 @@ int SuitsFilterModel::countDives(const char *s) const
return count_dives_with_suit(s);
}
-bool SuitsFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
+bool SuitsFilterModel::doFilter(dive *d, QModelIndex&, QAbstractItemModel*) const
{
- Q_UNUSED(index0);
- Q_UNUSED(sourceModel);
-
// rowCount() == 0 should never happen, because we have the "no suits" row
// let's handle it gracefully anyway.
if (!anyChecked || rowCount() == 0)
@@ -199,11 +196,8 @@ void TagFilterModel::repopulate()
updateList(list);
}
-bool TagFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
+bool TagFilterModel::doFilter(dive *d, QModelIndex&, QAbstractItemModel*) const
{
- Q_UNUSED(index0);
- Q_UNUSED(sourceModel);
-
// If there's nothing checked, this should show everything
// rowCount() == 0 should never happen, because we have the "no tags" row
// let's handle it gracefully anyway.
@@ -240,11 +234,8 @@ int BuddyFilterModel::countDives(const char *s) const
return count_dives_with_person(s);
}
-bool BuddyFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
+bool BuddyFilterModel::doFilter(dive *d, QModelIndex&, QAbstractItemModel*) const
{
- Q_UNUSED(index0);
- Q_UNUSED(sourceModel);
-
// If there's nothing checked, this should show everything
// rowCount() == 0 should never happen, because we have the "no tags" row
// let's handle it gracefully anyway.
@@ -298,11 +289,8 @@ int LocationFilterModel::countDives(const char *s) const
return count_dives_with_location(s);
}
-bool LocationFilterModel::doFilter(struct dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
+bool LocationFilterModel::doFilter(struct dive *d, QModelIndex&, QAbstractItemModel*) const
{
- Q_UNUSED(index0);
- Q_UNUSED(sourceModel);
-
// rowCount() == 0 should never happen, because we have the "no location" row
// let's handle it gracefully anyway.
if (!anyChecked || rowCount() == 0)