Use implicit copy constructor, move constructor, and move assignment operator.
draft
Use implicit copy constructor, move constructor, and move assignment operator.
MozReview-Commit-ID: 1pbHV26bESw
--- a/gfx/2d/Polygon.h
+++ b/gfx/2d/Polygon.h
@@ -26,31 +26,16 @@ public:
}
explicit BasePolygon3D(const nsTArray<Point3DTyped<Units>>& aPoints)
: mPoints(aPoints)
{
CalculateNormal();
}
- BasePolygon3D(const BasePolygon3D& aOther)
- : mPoints(aOther.mPoints)
- , mNormal(aOther.mNormal) {}
-
- BasePolygon3D(BasePolygon3D && aOther)
- : mPoints(std::move(aOther.mPoints))
- , mNormal(std::move(aOther.mNormal)) {}
-
- BasePolygon3D& operator=(BasePolygon3D && aOther)
- {
- mPoints = std::move(aOther.mPoints);
- mNormal = std::move(aOther.mNormal);
- return *this;
- }
-
const Point3DTyped<Units>& GetNormal() const
{
return mNormal;
}
const nsTArray<Point3D>& GetPoints() const
{
return mPoints;