mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Standardised how divedatapoints are created.
Changed the way dive data points for OC cylinders to be added to the dive plan are created in `createTemporaryPlan()` in `diveplannermodel.cpp`. This now uses `plan_add_segment()` like all other places where dive data points are added, in particular the planner tests. This also allowed for `create_dp()` to be made static. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
ec0c6833a0
commit
ab7b9329c0
3 changed files with 9 additions and 16 deletions
|
@ -339,7 +339,7 @@ void free_dps(struct diveplan *diveplan)
|
|||
diveplan->dp = NULL;
|
||||
}
|
||||
|
||||
struct divedatapoint *create_dp(int time_incr, int depth, int cylinderid, int po2)
|
||||
static struct divedatapoint *create_dp(int time_incr, int depth, int cylinderid, int po2)
|
||||
{
|
||||
struct divedatapoint *dp;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue