mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Code Cleanup - Remove temporaries.
Just code cleanup, removing temporaries. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
2921f4c825
commit
6c56f07959
1 changed files with 3 additions and 9 deletions
|
@ -412,16 +412,10 @@ void DivePlannerGraphics::createDecoStops()
|
||||||
int rowCount = plannerModel->rowCount();
|
int rowCount = plannerModel->rowCount();
|
||||||
int lastIndex = -1;
|
int lastIndex = -1;
|
||||||
for(int i = 0; i < rowCount; i++){
|
for(int i = 0; i < rowCount; i++){
|
||||||
// TODO: Dirk, the values already exists on the interface in the form of strings, can you
|
divedatapoint p = plannerModel->at(i);
|
||||||
// give me a bit of help here?
|
int deltaT = lastIndex != -1 ? p.time - plannerModel->at(lastIndex).time : p.time;
|
||||||
divedatapoint thisPoint = plannerModel->at(i);
|
|
||||||
|
|
||||||
int o2 = thisPoint.o2;
|
|
||||||
int he = thisPoint.he;
|
|
||||||
int po2 = thisPoint.po2;
|
|
||||||
int deltaT = lastIndex != -1 ? thisPoint.time - plannerModel->at(lastIndex).time : thisPoint.time;
|
|
||||||
lastIndex = i;
|
lastIndex = i;
|
||||||
dp = plan_add_segment(&diveplan, deltaT, thisPoint.depth, o2, he, po2);
|
dp = plan_add_segment(&diveplan, deltaT, p.depth, p.o2, p.he, p.po2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue