mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
2d5094a48b
commit
d295ca1d17
5 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue