summaryrefslogtreecommitdiff
path: root/src/data/graphelementdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/graphelementdata.cpp')
-rw-r--r--src/data/graphelementdata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/data/graphelementdata.cpp b/src/data/graphelementdata.cpp
index 66ef16f..25ba08e 100644
--- a/src/data/graphelementdata.cpp
+++ b/src/data/graphelementdata.cpp
@@ -118,9 +118,9 @@ QVariant GraphElementData::data(const QModelIndex &index, int role) const
QString s = (index.column() == 0) ? p.key() : p.value();
return QVariant(s);
}
- } else {
- return QVariant();
}
+
+ return QVariant();
}
QVariant GraphElementData::headerData(int section, Qt::Orientation orientation, int role) const
@@ -133,12 +133,12 @@ QVariant GraphElementData::headerData(int section, Qt::Orientation orientation,
return QVariant();
}
-QModelIndex GraphElementData::index(int row, int column, const QModelIndex &parent) const
+QModelIndex GraphElementData::index(int row, int column, const QModelIndex &) const
{
return createIndex(row, column, (void*)0);
}
-QModelIndex GraphElementData::parent(const QModelIndex &index) const
+QModelIndex GraphElementData::parent(const QModelIndex &) const
{
// there is no nesting, so always return an invalid index
return QModelIndex();