mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Adopt planner state caching to new struct
Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
57ee5a5477
commit
7b18be2a50
6 changed files with 49 additions and 48 deletions
|
@ -823,7 +823,7 @@ void DivePlannerPointsModel::createTemporaryPlan()
|
|||
}
|
||||
|
||||
// what does the cache do???
|
||||
char *cache = NULL;
|
||||
struct deco_state *cache = NULL;
|
||||
struct divedatapoint *dp = NULL;
|
||||
for (int i = 0; i < MAX_CYLINDERS; i++) {
|
||||
cylinder_t *cyl = &displayed_dive.cylinder[i];
|
||||
|
@ -871,7 +871,7 @@ void DivePlannerPointsModel::saveDuplicatePlan()
|
|||
void DivePlannerPointsModel::createPlan(bool replanCopy)
|
||||
{
|
||||
// Ok, so, here the diveplan creates a dive
|
||||
char *cache = NULL;
|
||||
struct deco_state *cache = NULL;
|
||||
bool oldRecalc = setRecalc(false);
|
||||
removeDeco();
|
||||
createTemporaryPlan();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue