Another fix for C++ conformant compilers
This commit is contained in:
parent
c7c7983e77
commit
96f8744e05
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ namespace ClipperUtils {
|
|||
static ExPolygons PolyTreeToExPolygons(ClipperLib::PolyTree &&polytree)
|
||||
{
|
||||
struct Inner {
|
||||
static void PolyTreeToExPolygonsRecursive(ClipperLib::PolyNode &polynode, ExPolygons *expolygons)
|
||||
static void PolyTreeToExPolygonsRecursive(ClipperLib::PolyNode &&polynode, ExPolygons *expolygons)
|
||||
{
|
||||
size_t cnt = expolygons->size();
|
||||
expolygons->resize(cnt + 1);
|
||||
|
@ -73,7 +73,7 @@ static ExPolygons PolyTreeToExPolygons(ClipperLib::PolyTree &&polytree)
|
|||
(*expolygons)[cnt].holes[i].points = std::move(polynode.Childs[i]->Contour);
|
||||
// Add outer polygons contained by (nested within) holes.
|
||||
for (int j = 0; j < polynode.Childs[i]->ChildCount(); ++ j)
|
||||
PolyTreeToExPolygonsRecursive(*polynode.Childs[i]->Childs[j], expolygons);
|
||||
PolyTreeToExPolygonsRecursive(std::move(*polynode.Childs[i]->Childs[j]), expolygons);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue