1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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:
azn
2014-12-17 11:17:28 +03:00
committed by kgv
parent 4dff6a1bcb
commit 9533a86648
9 changed files with 15 additions and 110 deletions

View File

@@ -80,19 +80,6 @@ public:
v[3] = theAlpha;
}
//! Copy constructor.
NCollection_Vec4 (const NCollection_Vec4& theVec4)
{
std::memcpy (this, &theVec4, sizeof(NCollection_Vec4));
}
//! Assignment operator.
const NCollection_Vec4& operator= (const NCollection_Vec4& theVec4)
{
std::memcpy (this, &theVec4, sizeof(NCollection_Vec4));
return *this;
}
//! Alias to 1st component as X coordinate in XYZW.
Element_t x() const { return v[0]; }