planner: add move assignment constructor and operator to diveplan

Makes coverity happy and is a good idea.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-09-10 21:37:00 +02:00 committed by bstoeger
parent db531bbd05
commit 6f91a73a05

View file

@ -33,6 +33,10 @@ typedef enum {
struct diveplan {
diveplan();
~diveplan();
diveplan(const diveplan &) = default;
diveplan(diveplan &&) = default;
diveplan &operator=(const diveplan &) = default;
diveplan &operator=(diveplan &&) = default;
timestamp_t when = 0;
int surface_pressure = 0; /* mbar */