[TD] avoid memory leaks by using shared_ptr
TD geometry objects are sometimes double deleted. This change uses shared_ptr instead of raw pointers to manage deletions.
This commit is contained in:
committed by
WandererFan
parent
ad2169e5ae
commit
28c5890bc9
@@ -53,7 +53,7 @@ class TechDrawExport hTrimCurve {
|
||||
class TechDrawExport DrawDimHelper {
|
||||
public:
|
||||
static void makeExtentDim(DrawViewPart* dvp,
|
||||
// std::vector<TechDraw::BaseGeom*> selEdges,
|
||||
// std::vector<TechDraw::BaseGeomPtr> selEdges,
|
||||
std::vector<std::string> edgeNames,
|
||||
int direction);
|
||||
static gp_Pnt2d findClosestPoint(std::vector<hTrimCurve> hCurve2dList,
|
||||
|
||||
Reference in New Issue
Block a user