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

@ -148,7 +148,7 @@ static void parse_dives(int log_version, const unsigned char *buf, unsigned int
/* Just the main cylinder until we can handle the buddy cylinder porperly */
for (i = 0; i < 1; i++) {
cylinder_t cyl = default_cylinder(dive.get());
dive->cylinders.add(i, cyl);
dive->cylinders.add(i, std::move(cyl));
}
// Model 0=Xen, 1,2=Xeo, 4=Lynx, other=Liquivision