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:
@@ -49,21 +49,6 @@ public:
|
||||
InitIdentity();
|
||||
}
|
||||
|
||||
//! Copy constructor.
|
||||
//! @param theOther [in] the matrix to copy values from.
|
||||
NCollection_Mat4 (const NCollection_Mat4& theOther)
|
||||
{
|
||||
std::memcpy (this, &theOther, sizeof (NCollection_Mat4));
|
||||
}
|
||||
|
||||
//! Assignment operator.
|
||||
//! @param theOther [in] the matrix to copy values from.
|
||||
const NCollection_Mat4& operator= (const NCollection_Mat4& theOther)
|
||||
{
|
||||
std::memcpy (this, &theOther, sizeof (NCollection_Mat4));
|
||||
return *this;
|
||||
}
|
||||
|
||||
//! Get element at the specified row and column.
|
||||
//! @param theRow [in] the row.to address.
|
||||
//! @param theCol [in] the column to address.
|
||||
|
Reference in New Issue
Block a user