TD: fixes warning: local variable will be copied despite being returned by name [-Wreturn-std-move]

This commit is contained in:
wmayer
2022-04-17 17:21:37 +02:00
parent f68078e5cd
commit 1cae0fb41d
2 changed files with 2 additions and 2 deletions

View File

@@ -517,7 +517,7 @@ TopoDS_Shape DrawViewDetail::projectEdgesOntoFace(TopoDS_Shape edgeShape, TopoDS
BRepTools::Write(edges, "DVDEdges.brep"); //debug
}
return edges;
return TopoDS_Shape(std::move(edges));
}
//we don't want to paint detail highlights on top of detail views,

View File

@@ -325,7 +325,7 @@ TopoDS_Shape ShapeExtractor::stripInfiniteShapes(TopoDS_Shape inShape)
}
builder.Add(comp, s);
}
return comp;
return TopoDS_Shape(std::move(comp));
}
bool ShapeExtractor::is2dObject(App::DocumentObject* obj)