aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/locationinformation.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-13 13:14:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-13 21:41:41 -0400
commit11a211fb02ad5443342d91b6967f150cb4f6d34f (patch)
treebe1006b08842776338285d6d12ad312a367a68f5 /desktop-widgets/locationinformation.h
parenta823974b70433c6a99b9fad57689693d1299def7 (diff)
downloadsubsurface-11a211fb02ad5443342d91b6967f150cb4f6d34f.tar.gz
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>
Diffstat (limited to 'desktop-widgets/locationinformation.h')
-rw-r--r--desktop-widgets/locationinformation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/locationinformation.h b/desktop-widgets/locationinformation.h
index 43115a05b..a6141c4fc 100644
--- a/desktop-widgets/locationinformation.h
+++ b/desktop-widgets/locationinformation.h
@@ -52,7 +52,7 @@ private:
bool modified;
QAction *acceptAction, *rejectAction;
GPSLocationInformationModel filter_model;
- dive_site displayed_dive_site;
+ dive_site *diveSite;
taxonomy_data taxonomy;
};