Skip to content

Commit 7176f0a

Browse files
committed
Optimize convert_polygon_vector a bit
1 parent ca767e3 commit 7176f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_path_wrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ convert_polygon_vector(std::vector<Polygon> &polygons)
2525
auto result = py::list(polygons.size());
2626

2727
for (size_t i = 0; i < polygons.size(); ++i) {
28-
Polygon poly = polygons[i];
28+
const auto& poly = polygons[i];
2929
py::ssize_t dims[] = { static_cast<py::ssize_t>(poly.size()), 2 };
3030

3131
py::array_t<double> subresult(dims);

0 commit comments

Comments
 (0)