TD: fixes warning: local variable will be copied despite being returned by name [-Wreturn-std-move]
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user