core: turn dive-trip location and notes into std::string

Simpler memory management.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-31 17:15:47 +02:00 committed by bstoeger
parent 2fd226964c
commit 3ee41328f9
29 changed files with 157 additions and 179 deletions

View file

@ -59,7 +59,7 @@ struct parser_state {
std::unique_ptr<dive> cur_dive; /* owning */
std::unique_ptr<dive_site> cur_dive_site; /* owning */
location_t cur_location;
struct dive_trip *cur_trip = nullptr; /* owning */
std::unique_ptr<dive_trip> cur_trip; /* owning */
struct sample *cur_sample = nullptr; /* non-owning */
struct picture cur_picture; /* owning */
std::unique_ptr<filter_preset> cur_filter; /* owning */