TD: Remove incorrect allocation failure handler

This commit is contained in:
Chris Hennes
2025-07-22 00:02:00 -05:00
committed by Kacper Donat
parent f5c315d05a
commit ab52946257

View File

@@ -197,16 +197,13 @@ CenterLine* CenterLine::CenterLineBuilder(const DrawViewPart* partFeat,
return nullptr;
}
TechDraw::CenterLine* cl = new TechDraw::CenterLine(ends.first, ends.second);
if (cl) {
cl->m_type = type;
cl->m_mode = mode;
cl->m_faces = faces;
cl->m_edges = edges;
cl->m_verts = verts;
cl->m_flip2Line = flip;
}
auto * cl = new TechDraw::CenterLine(ends.first, ends.second);
cl->m_type = type;
cl->m_mode = mode;
cl->m_faces = faces;
cl->m_edges = edges;
cl->m_verts = verts;
cl->m_flip2Line = flip;
return cl;
}