From 9eeeba468a5b4913cf889801690dc3aa834c7780 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 17 Jul 2014 21:16:49 +0200 Subject: Use more of our propper types in the planner Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 8882664c9..f68214b83 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -105,7 +105,7 @@ void DivePlannerPointsModel::setupStartTime() void DivePlannerPointsModel::loadFromDive(dive *d) { CylindersModel::instance()->updateDive(); - int lasttime = 0; + duration_t lasttime = {}; // we start with the first gas and see if it was changed struct gasmix gas = d->cylinder[0].gasmix; for (int i = 0; i < d->dc.samples - 1; i++) { @@ -114,7 +114,7 @@ void DivePlannerPointsModel::loadFromDive(dive *d) continue; get_gas_from_events(&d->dc, lasttime, &gas); plannerModel->addStop(s.depth.mm, s.time.seconds, &gas, 0, true); - lasttime = s.time.seconds; + lasttime = s.time; } } -- cgit v1.2.3-70-g09d2