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 lastIndex = -1;
|
||||
for(int i = 0; i < rowCount; i++){
|
||||
// TODO: Dirk, the values already exists on the interface in the form of strings, can you
|
||||
// give me a bit of help here?
|
||||
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;
|
||||
divedatapoint p = plannerModel->at(i);
|
||||
int deltaT = lastIndex != -1 ? p.time - plannerModel->at(lastIndex).time : p.time;
|
||||
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
Reference in a new issue