From 57f677029e955ea69ed70238af1efd7a286deec3 Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Date: Mon, 7 Mar 2016 03:43:20 -0300
Subject: [PATCH 08/10] silence more warnings

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
---
 qt-models/cylindermodel.cpp         |  3 ++-
 qt-models/filtermodels.cpp          | 12 ++++++++++++
 qt-models/yearlystatisticsmodel.cpp |  3 ++-
 3 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp
index 1a587ce..7578dbf 100644
--- a/qt-models/cylindermodel.cpp
+++ b/qt-models/cylindermodel.cpp
@@ -7,7 +7,8 @@
 #include "diveplannermodel.h"
 #include "gettextfromc.h"
 
-CylindersModel::CylindersModel(QObject *parent) : changed(false),
+CylindersModel::CylindersModel(QObject *parent) : CleanerTableModel(parent),
+	changed(false),
 	rows(0)
 {
 	//	enum {REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH};
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp
index cbb83d0..452b107 100644
--- a/qt-models/filtermodels.cpp
+++ b/qt-models/filtermodels.cpp
@@ -78,6 +78,9 @@ SuitsFilterModel::SuitsFilterModel(QObject *parent) : QStringListModel(parent)
 
 bool SuitsFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
 {
+	Q_UNUSED(index0);
+	Q_UNUSED(sourceModel);
+
 	if (!anyChecked) {
 		return true;
 	}
@@ -153,6 +156,9 @@ void TagFilterModel::repopulate()
 
 bool TagFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
 {
+	Q_UNUSED(index0);
+	Q_UNUSED(sourceModel);
+
 	// If there's nothing checked, this should show everything
 	if (!anyChecked) {
 		return true;
@@ -188,6 +194,9 @@ BuddyFilterModel::BuddyFilterModel(QObject *parent) : QStringListModel(parent)
 
 bool BuddyFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
 {
+	Q_UNUSED(index0);
+	Q_UNUSED(sourceModel);
+
 	// If there's nothing checked, this should show everything
 	if (!anyChecked) {
 		return true;
@@ -246,6 +255,9 @@ LocationFilterModel::LocationFilterModel(QObject *parent) : QStringListModel(par
 
 bool LocationFilterModel::doFilter(struct dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const
 {
+	Q_UNUSED(index0);
+	Q_UNUSED(sourceModel);
+
 	if (!anyChecked) {
 		return true;
 	}
diff --git a/qt-models/yearlystatisticsmodel.cpp b/qt-models/yearlystatisticsmodel.cpp
index 955f0e8..7761693 100644
--- a/qt-models/yearlystatisticsmodel.cpp
+++ b/qt-models/yearlystatisticsmodel.cpp
@@ -108,7 +108,8 @@ QVariant YearStatisticsItem::data(int column, int role) const
 	return ret;
 }
 
-YearlyStatisticsModel::YearlyStatisticsModel(QObject *parent)
+YearlyStatisticsModel::YearlyStatisticsModel(QObject *parent) :
+	TreeModel(parent)
 {
 	columns = COLUMNS;
 	update_yearly_stats();
-- 
2.5.4 (Apple Git-61)

