TD: Remove incorrect allocation failure handler
This commit is contained in:
committed by
Kacper Donat
parent
f5c315d05a
commit
ab52946257
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user