diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-11 18:50:53 +0200 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-11 18:50:53 +0200 |
commit | abf9650280819a5e1f5b15f6d21fa297f986f42e (patch) | |
tree | 947bac6c813ea6aec4688085fc97cd08812407db /qt-models/divepicturemodel.h | |
parent | 1c420dc64a800fc2ebf0b675fc7edabed6a30d31 (diff) | |
download | subsurface-abf9650280819a5e1f5b15f6d21fa297f986f42e.tar.gz |
cleanup: don't keep pointer-to-picture in PictureEntry
The DivePictureModel kept a pointer to picture for each entry.
Firstly, this is dangerous from a data-consistency point of view.
Secondly, the entry wasn't even used anywhere. Remove it.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divepicturemodel.h')
-rw-r--r-- | qt-models/divepicturemodel.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-models/divepicturemodel.h b/qt-models/divepicturemodel.h index 4e25db687..5bee26864 100644 --- a/qt-models/divepicturemodel.h +++ b/qt-models/divepicturemodel.h @@ -10,7 +10,6 @@ struct PictureEntry { int diveId; - struct picture *picture; QString filename; QImage image; int offsetSeconds; |