From 60e7fc8eb418c5dbbbd2788c4e7987c475268e69 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 31 Oct 2008 19:31:08 +0000 Subject: [FIX] Using Q_UNUSED instead of commenting out parameter names git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@287 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigmodr/TilemapModel.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sigmodr/TilemapModel.cpp') diff --git a/sigmodr/TilemapModel.cpp b/sigmodr/TilemapModel.cpp index 82cbf5d9..093b2389 100644 --- a/sigmodr/TilemapModel.cpp +++ b/sigmodr/TilemapModel.cpp @@ -58,20 +58,23 @@ QVariant Sigmodr::TilemapModel::data(const QModelIndex& index, int role) const return QVariant(); } -QVariant Sigmodr::TilemapModel::headerData(int section, Qt::Orientation /*orientation*/, int role) const +QVariant Sigmodr::TilemapModel::headerData(int section, Qt::Orientation orientation, int role) const { + Q_UNUSED(orientation) if (role == Qt::DisplayRole) return section; return QVariant(); } -int Sigmodr::TilemapModel::rowCount(const QModelIndex& /*parent*/) const +int Sigmodr::TilemapModel::rowCount(const QModelIndex& parent) const { + Q_UNUSED(parent) return m_tilemap.height(); } -int Sigmodr::TilemapModel::columnCount(const QModelIndex& /*parent*/) const +int Sigmodr::TilemapModel::columnCount(const QModelIndex& parent) const { + Q_UNUSED(parent) return m_tilemap.width(); } -- cgit