Fix -Wdeprecated-copy

This commit is contained in:
wmayer
2020-06-11 23:54:46 +02:00
committed by wwmayer
parent a455927d4a
commit 8b5e05d1dc
3 changed files with 23 additions and 0 deletions

View File

@@ -39,6 +39,11 @@
using namespace MeshCore;
using namespace Wm4;
MeshPointArray::MeshPointArray(const MeshPointArray& ary)
: TMeshPointArray(ary)
{
}
unsigned long MeshPointArray::Get (const MeshPoint &rclPoint)
{
iterator clIter;
@@ -97,6 +102,12 @@ void MeshPointArray::Transform(const Base::Matrix4D& mat)
mat.multVec(*pP,*pP);
}
MeshFacetArray::MeshFacetArray(const MeshFacetArray& ary)
: TMeshFacetArray(ary)
{
}
void MeshFacetArray::Erase (_TIterator pIter)
{
unsigned long i, *pulN;

View File

@@ -548,6 +548,8 @@ public:
MeshPointArray (void) { }
// constructor
MeshPointArray (unsigned long ulSize) : TMeshPointArray(ulSize) { }
/// copy-constructor
MeshPointArray (const MeshPointArray&);
// Destructor
~MeshPointArray (void) { }
//@}
@@ -600,6 +602,8 @@ public:
MeshFacetArray (void) { }
/// constructor
MeshFacetArray (unsigned long ulSize) : TMeshFacetArray(ulSize) { }
/// copy-constructor
MeshFacetArray (const MeshFacetArray&);
/// destructor
~MeshFacetArray (void) { }
//@}

View File

@@ -41,6 +41,14 @@ struct Point3d
{
}
Point3d(const Point3d& pnt) : p(pnt.p), i(pnt.i)
{
}
~Point3d()
{
}
inline value_type operator[](const int N) const
{
return p[N];