[TechDraw] Simplify return logic

Easy warmup
This commit is contained in:
Benjamin Bræstrup Sayoc
2023-04-09 18:31:06 +02:00
committed by WandererFan
parent 17b457a783
commit 6df0a20214
25 changed files with 53 additions and 106 deletions

View File

@@ -159,10 +159,8 @@ DrawViewPart::~DrawViewPart()
std::vector<TopoDS_Shape> DrawViewPart::getSourceShape2d() const
{
// Base::Console().Message("DVP::getSourceShape2d()\n");
std::vector<TopoDS_Shape> result;
const std::vector<App::DocumentObject*>& links = getAllSources();
result = ShapeExtractor::getShapes2d(links);
return result;
return ShapeExtractor::getShapes2d(links);
}
TopoDS_Shape DrawViewPart::getSourceShape() const