mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: pass location_t as value to divesite functions
These were passed as pointers, which makes no sense. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
858a0aecba
commit
90d5bab4e9
8 changed files with 16 additions and 16 deletions
|
@ -171,7 +171,7 @@ AddPictures::AddPictures(const std::vector<PictureListForAddition> &pictures) :
|
|||
if (!ds) {
|
||||
// This dive doesn't yet have a dive site -> add a new dive site.
|
||||
QString name = Command::Base::tr("unnamed dive site");
|
||||
sitesToAdd.push_back(std::make_unique<dive_site>(qPrintable(name), &it->location));
|
||||
sitesToAdd.push_back(std::make_unique<dive_site>(qPrintable(name), it->location));
|
||||
sitesToSet.push_back({ p.d, sitesToAdd.back().get() });
|
||||
} else if (!dive_site_has_gps_location(ds)) {
|
||||
// This dive has a dive site, but without coordinates. Let's add them.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue