mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025618: Avoid classes with an assignment operator and not implementing both a destructor and a copy constructor
User-defined assignment operator is removed in the classes IntPolyh_StartPoint and Quantity_Color, as default assignment will be OK
This commit is contained in:
@@ -92,24 +92,6 @@ Standard_Integer IntPolyh_StartPoint::GetEdgePoints(const IntPolyh_Triangle &Tri
|
||||
return(SurfID) ;
|
||||
}
|
||||
|
||||
void IntPolyh_StartPoint::Equal(const IntPolyh_StartPoint &StPt) {
|
||||
x = StPt.x;
|
||||
y = StPt.y;
|
||||
z = StPt.z;
|
||||
u1 = StPt.u1;
|
||||
v1 = StPt.v1;
|
||||
u2 = StPt.u2;
|
||||
v2 = StPt.v2;
|
||||
t1 = StPt.t1;
|
||||
e1 = StPt.e1;
|
||||
lambda1 = StPt.lambda1;
|
||||
t2 = StPt.t2;
|
||||
e2 = StPt.e2;
|
||||
lambda2 = StPt.lambda2;
|
||||
angle = StPt.angle;
|
||||
chainlist = StPt.chainlist;
|
||||
}
|
||||
|
||||
void IntPolyh_StartPoint::SetXYZ(const Standard_Real XX,
|
||||
const Standard_Real YY,
|
||||
const Standard_Real ZZ) {
|
||||
|
@@ -18,15 +18,9 @@
|
||||
#define _IntPolyh_StartPoint_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class IntPolyh_Triangle;
|
||||
|
||||
|
||||
|
||||
class IntPolyh_StartPoint
|
||||
{
|
||||
public:
|
||||
@@ -70,12 +64,6 @@ public:
|
||||
|
||||
Standard_EXPORT Standard_Integer GetEdgePoints (const IntPolyh_Triangle& Triangle, Standard_Integer& FirstEdgePoint, Standard_Integer& SecondEdgePoint, Standard_Integer& LastPoint) const;
|
||||
|
||||
Standard_EXPORT void Equal (const IntPolyh_StartPoint& StPt);
|
||||
void operator = (const IntPolyh_StartPoint& StPt)
|
||||
{
|
||||
Equal(StPt);
|
||||
}
|
||||
|
||||
Standard_EXPORT void SetXYZ (const Standard_Real XX, const Standard_Real YY, const Standard_Real ZZ);
|
||||
|
||||
Standard_EXPORT void SetUV1 (const Standard_Real UU1, const Standard_Real VV1);
|
||||
@@ -102,19 +90,7 @@ void operator = (const IntPolyh_StartPoint& StPt)
|
||||
|
||||
Standard_EXPORT void Dump (const Standard_Integer i) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Standard_Real x;
|
||||
Standard_Real y;
|
||||
Standard_Real z;
|
||||
@@ -130,14 +106,6 @@ private:
|
||||
Standard_Integer t2;
|
||||
Standard_Integer e2;
|
||||
Standard_Integer chainlist;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IntPolyh_StartPoint_HeaderFile
|
||||
|
Reference in New Issue
Block a user