From 7b18be2a50e3c94fa1e9ae30c92bbb3eee3593d6 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 26 May 2017 00:45:53 +0200 Subject: Adopt planner state caching to new struct Signed-off-by: Robert C. Helling --- qt-models/diveplannermodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models') diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 643a70234..54a5ce7b6 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -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(); -- cgit v1.2.3-70-g09d2