1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0025616: Avoid Classes using "new" to allocate Instances but not defining a copy Constructor

The empty copy constructor, assignemnts operator, default constructors added to the following classes:
The following classes use “new” function without Handles:
- Select3D_PointData
- BSB_T3Bits
- IntPatch_InfoPD
- LDOM_StringElem
- BinomAllocator
- ProjLib_OnSurface
- Standard_MMgrFactory

Useless declaration of default constructor have been deleted.
This commit is contained in:
azn
2015-01-15 14:41:27 +03:00
committed by bugmaster
parent c8be748cd4
commit 6a38ff486c
8 changed files with 96 additions and 57 deletions

View File

@@ -106,9 +106,10 @@ public:
}
private:
Select3D_PointData (const Select3D_PointData&);
Select3D_PointData& operator= (const Select3D_PointData&);
// Default constructor
Select3D_PointData () {}
private:
Select3D_Pnt* mypolyg3d;
Select3D_Pnt2d* mypolyg2d;