Adopt planner state caching to new struct

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2017-05-26 00:45:53 +02:00 committed by Dirk Hohndel
parent 57ee5a5477
commit 7b18be2a50
6 changed files with 49 additions and 48 deletions

View file

@ -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();