Dive site: replace displayed_dive_site by pointer

In the dive-site-edit widget, a copy of the current dive site was
used to store the old (pre-edit) data. This is not necessary, since
we can simply access the data in the original dive site. Thus,
replace the subobject by a simple pointer.

This is part of a series to replace dive-site uuids by pointers.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-10-13 13:14:48 +02:00 committed by Dirk Hohndel
parent a823974b70
commit 11a211fb02
2 changed files with 54 additions and 49 deletions

View file

@ -52,7 +52,7 @@ private:
bool modified;
QAction *acceptAction, *rejectAction;
GPSLocationInformationModel filter_model;
dive_site displayed_dive_site;
dive_site *diveSite;
taxonomy_data taxonomy;
};