summaryrefslogtreecommitdiffstats
path: root/qt-models/weightmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-03 15:32:59 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-05 10:14:25 -0800
commit92b833a7d85f7d361f2b198782bb093c300ed59a (patch)
tree62825c5b20c68045158e4f96f0a4747cdcebcffc /qt-models/weightmodel.h
parent2cfb35b6d7b5bb7bb7275f078bf2aff959e6ecef (diff)
downloadsubsurface-92b833a7d85f7d361f2b198782bb093c300ed59a.tar.gz
Cleanup: remove redundant "row" member of WeightModel
Before undoization, the WeightModel could be out-of-sync with the actual dive and therefore had a row member variable. This became redundant. Therefore, remove it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/weightmodel.h')
-rw-r--r--qt-models/weightmodel.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-models/weightmodel.h b/qt-models/weightmodel.h
index 2e5a190ba..f3002a1ae 100644
--- a/qt-models/weightmodel.h
+++ b/qt-models/weightmodel.h
@@ -25,7 +25,7 @@ public:
void passInData(const QModelIndex &index, const QVariant &value);
void clear();
void updateDive(dive *d);
- weightsystem_t weightSystemAt(const QModelIndex &index);
+ weightsystem_t weightSystemAt(const QModelIndex &index) const;
bool changed;
public
@@ -36,7 +36,6 @@ slots:
private:
dive *d;
- int rows;
};
#endif