Skip to content

Commit

Permalink
🚨 std::move variables trivially-copyable
Browse files Browse the repository at this point in the history
  • Loading branch information
fbriol committed Feb 16, 2024
1 parent 621848d commit f49af3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyinterp/core/module/geodetic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static void init_geodetic_box(py::class_<geodetic::Box> &class_) {
if (min_corner.lon() > max_corner.lon()) {
std::swap(min_corner, max_corner);
}
return geodetic::Box(std::move(min_corner), std::move(max_corner));
return geodetic::Box(min_corner, max_corner);
}),
py::arg("min_corner"), py::arg("max_corner"))
.def_static("from_geojson", &geodetic::Box::from_geojson,
Expand Down

0 comments on commit f49af3c

Please sign in to comment.