mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: add default initialization to sruct deco_state
Don't memset() to clear deco_state, use assignment of default constructed object (or better yet: just default construct). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f18acf6fb9
commit
2b3d2f1020
3 changed files with 25 additions and 26 deletions
|
|
@ -1071,7 +1071,6 @@ void DivePlannerPointsModel::updateDiveProfile()
|
|||
struct decostop stoptable[60];
|
||||
struct deco_state plan_deco_state;
|
||||
|
||||
memset(&plan_deco_state, 0, sizeof(struct deco_state));
|
||||
plan(&plan_deco_state, &diveplan, d, dcNr, decotimestep, stoptable, cache, isPlanner(), false);
|
||||
updateMaxDepth();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue