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:
Berthold Stoeger 2024-05-29 18:01:26 +02:00 committed by bstoeger
parent f18acf6fb9
commit 2b3d2f1020
3 changed files with 25 additions and 26 deletions

View file

@ -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();