Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7176f0a

Browse files
committed
Optimize convert_polygon_vector a bit
1 parentca767e3 commit7176f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/_path_wrapper.cpp

Lines changed: 1 addition & 1 deletion
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+
constauto& 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)

[8]ページ先頭

©2009-2025 Movatter.jp