core: turn string data in struct divecomputer into std::string

Simplifies memory management.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-18 17:03:19 +02:00 committed by bstoeger
parent cc39f709ce
commit b9a2eff3c9
28 changed files with 114 additions and 147 deletions

View file

@ -577,7 +577,7 @@ void ProfileScene::plotDive(const struct dive *dIn, int dcIn, DivePlannerPointsM
event = event->next;
}
QString dcText = get_dc_nickname(currentdc);
QString dcText = QString::fromStdString(get_dc_nickname(currentdc));
if (is_dc_planner(currentdc))
dcText = tr("Planned dive");
else if (is_dc_manually_added_dive(currentdc))