code cleanup: use std::move() to potentially void copies

Found by Coverity.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-08-17 22:00:41 +02:00 committed by bstoeger
parent 2d5094a48b
commit d295ca1d17
5 changed files with 8 additions and 8 deletions

View file

@ -407,7 +407,7 @@ void add_default_cylinder(struct dive *d)
cyl.type.size.mliter = 11100;
cyl.type.workingpressure.mbar = 207000;
}
d->cylinders.add(0, cyl);
d->cylinders.add(0, std::move(cyl));
reset_cylinders(d, false);
}