summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-models/cylindermodel.cpp2
-rw-r--r--qt-models/cylindermodel.h2
-rw-r--r--qt-models/weightmodel.cpp2
-rw-r--r--qt-models/weightmodel.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp
index 22fc5ae8b..5d697470f 100644
--- a/qt-models/cylindermodel.cpp
+++ b/qt-models/cylindermodel.cpp
@@ -486,7 +486,7 @@ Qt::ItemFlags CylindersModel::flags(const QModelIndex &index) const
return QAbstractItemModel::flags(index) | Qt::ItemIsEditable;
}
-void CylindersModel::remove(const QModelIndex &index)
+void CylindersModel::remove(QModelIndex index)
{
if (index.column() == USE) {
diff --git a/qt-models/cylindermodel.h b/qt-models/cylindermodel.h
index 0def53ba9..1596fa87f 100644
--- a/qt-models/cylindermodel.h
+++ b/qt-models/cylindermodel.h
@@ -46,7 +46,7 @@ public:
public
slots:
- void remove(const QModelIndex &index);
+ void remove(QModelIndex index);
void cylindersReset(const QVector<dive *> &dives);
bool updateBestMixes();
diff --git a/qt-models/weightmodel.cpp b/qt-models/weightmodel.cpp
index 3b5a122bf..36971f12e 100644
--- a/qt-models/weightmodel.cpp
+++ b/qt-models/weightmodel.cpp
@@ -21,7 +21,7 @@ weightsystem_t *WeightModel::weightSystemAt(const QModelIndex &index)
return &displayed_dive.weightsystems.weightsystems[index.row()];
}
-void WeightModel::remove(const QModelIndex &index)
+void WeightModel::remove(QModelIndex index)
{
if (index.column() != REMOVE)
return;
diff --git a/qt-models/weightmodel.h b/qt-models/weightmodel.h
index 2f59daf4b..21737a42c 100644
--- a/qt-models/weightmodel.h
+++ b/qt-models/weightmodel.h
@@ -31,7 +31,7 @@ public:
public
slots:
- void remove(const QModelIndex &index);
+ void remove(QModelIndex index);
void weightsystemsReset(const QVector<dive *> &dives);
private: