From ab52946257d56ea48447c0d15701b3dff717d4cd Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 22 Jul 2025 00:02:00 -0500 Subject: [PATCH] TD: Remove incorrect allocation failure handler --- src/Mod/TechDraw/App/CenterLine.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/Mod/TechDraw/App/CenterLine.cpp b/src/Mod/TechDraw/App/CenterLine.cpp index 8db69287a9..52b1b28660 100644 --- a/src/Mod/TechDraw/App/CenterLine.cpp +++ b/src/Mod/TechDraw/App/CenterLine.cpp @@ -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; }