mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0025617: Avoid classes with a copy constructor and the default destructor or assignment operator
Removed useless user-defined copy constructors and assignment operators in BOPCol_NCVector, NCollection_Mat4, NCollection_Vec* User-defined assignment operator matching copy constructor added in NCollection_StdAllocator. Class VrmlData_DataMapOfShapeAppearance redefined as simple typedef to NCollection_DataMap<>.
This commit is contained in:
@@ -73,19 +73,6 @@ public:
|
||||
v[2] = Element_t(0);
|
||||
}
|
||||
|
||||
//! Copy constructor.
|
||||
NCollection_Vec3 (const NCollection_Vec3& theVec3)
|
||||
{
|
||||
std::memcpy (this, &theVec3, sizeof(NCollection_Vec3));
|
||||
}
|
||||
|
||||
//! Assignment operator.
|
||||
const NCollection_Vec3& operator= (const NCollection_Vec3& theVec3)
|
||||
{
|
||||
std::memcpy (this, &theVec3, sizeof(NCollection_Vec3));
|
||||
return *this;
|
||||
}
|
||||
|
||||
//! Alias to 1st component as X coordinate in XYZ.
|
||||
Element_t x() const { return v[0]; }
|
||||
|
||||
|
Reference in New Issue
Block a user