diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-06-29 10:27:48 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-09 19:19:04 +0100 |
commit | 77e5dbac7309d6bc09d6ef2631857d41486f3ac8 (patch) | |
tree | 252c5ad131932ed954e09462eb766088dfe06ef8 /desktop-widgets/command_edit.h | |
parent | 16bdbc54b9b1966c03745ec54aa75a893ee89f16 (diff) | |
download | subsurface-77e5dbac7309d6bc09d6ef2631857d41486f3ac8.tar.gz |
Undo: Make PasteState cylinders list dynamically allocated
Instead of using a sub-array, use a std::vector<>. This is
a necessary step in removing the MAX_CYLINDERS restriction.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command_edit.h')
-rw-r--r-- | desktop-widgets/command_edit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/command_edit.h b/desktop-widgets/command_edit.h index ebce0bf1b..489c51046 100644 --- a/desktop-widgets/command_edit.h +++ b/desktop-widgets/command_edit.h @@ -246,7 +246,7 @@ struct PasteState { int rating; int visibility; tag_entry *tags; - cylinder_t cylinders[MAX_CYLINDERS]; + std::vector<cylinder_t> cylinders; struct weightsystem_table weightsystems; PasteState(dive *d, const dive *data, dive_components what); // Read data from dive data for dive d |