diff options
| author | Alexander Smirnov <[email protected]> | 2024-04-17 08:48:22 +0000 |
|---|---|---|
| committer | Alexander Smirnov <[email protected]> | 2024-04-17 08:48:22 +0000 |
| commit | cc2014c08c42990bd11697b26a7dec945898abd2 (patch) | |
| tree | 9e52c3981fbd050d94b971bf3d99f466448568b6 /contrib/python/contourpy/src/mpl2014.cpp | |
| parent | b41b33fc9f1e4b78a17c9dbc31607183104edd29 (diff) | |
| parent | 1a3642c3548d1cffa7e447091c6b026383ba4a52 (diff) | |
Merge branch 'rightlib' into mergelibs-240417-0847
Diffstat (limited to 'contrib/python/contourpy/src/mpl2014.cpp')
| -rw-r--r-- | contrib/python/contourpy/src/mpl2014.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/python/contourpy/src/mpl2014.cpp b/contrib/python/contourpy/src/mpl2014.cpp index d5012de6fc4..a363fa8768d 100644 --- a/contrib/python/contourpy/src/mpl2014.cpp +++ b/contrib/python/contourpy/src/mpl2014.cpp @@ -399,7 +399,8 @@ void Mpl2014ContourGenerator::append_contour_to_vertices_and_codes( const ContourLine::Children& children = line.get_children(); py::ssize_t npoints = static_cast<py::ssize_t>(line.size() + 1); for (children_it = children.begin(); children_it != children.end(); ++children_it) - npoints += static_cast<py::ssize_t>((*children_it)->size() + 1); + // cppcheck-suppress useStlAlgorithm + npoints += static_cast<py::ssize_t>((*children_it)->size() + 1); py::ssize_t vertices_dims[2] = {npoints, 2}; PointArray vertices(vertices_dims); @@ -642,8 +643,7 @@ unsigned int Mpl2014ContourGenerator::follow_boundary( // Add point to contour. get_point_xy(end_point, contour_line); - if (first_edge) - first_edge = false; + first_edge = false; } return level_index; |
