From c9a1d4c67f48f8776f7a58882a44e21012bd2d37 Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Date: Tue, 8 Mar 2016 02:28:00 -0300
Subject: [PATCH 17/21] Clean tankinfomodel

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
---
 qt-models/tankinfomodel.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/qt-models/tankinfomodel.cpp b/qt-models/tankinfomodel.cpp
index 0a06a3b..b324373 100644
--- a/qt-models/tankinfomodel.cpp
+++ b/qt-models/tankinfomodel.cpp
@@ -16,6 +16,7 @@ const QString &TankInfoModel::biggerString() const
 
 bool TankInfoModel::insertRows(int row, int count, const QModelIndex &parent)
 {
+	Q_UNUSED(row);
 	beginInsertRows(parent, rowCount(), rowCount());
 	rows += count;
 	endInsertRows();
@@ -24,6 +25,8 @@ bool TankInfoModel::insertRows(int row, int count, const QModelIndex &parent)
 
 bool TankInfoModel::setData(const QModelIndex &index, const QVariant &value, int role)
 {
+	//WARN Seems wrong, we need to check for role == Qt::EditRole
+	Q_UNUSED(role);
 	struct tank_info_t *info = &tank_info[index.row()];
 	switch (index.column()) {
 	case DESCRIPTION:
@@ -78,6 +81,7 @@ QVariant TankInfoModel::data(const QModelIndex &index, int role) const
 
 int TankInfoModel::rowCount(const QModelIndex &parent) const
 {
+	Q_UNUSED(parent);
 	return rows + 1;
 }
 
-- 
2.5.4 (Apple Git-61)

