0031004: Coding - eliminate warnings issued by gcc 9.1.0
[occt.git] / src / Intf / Intf_SectionLine.hxx
index f7840f1..c6a182a 100644 (file)
@@ -67,6 +67,14 @@ Standard_Boolean operator == (const Intf_SectionLine& Other) const
   //! Copies a SectionLine.
   Standard_EXPORT Intf_SectionLine(const Intf_SectionLine& Other);
   
+  //! Assignment
+  Intf_SectionLine& operator= (const Intf_SectionLine& theOther)
+  {
+    //closed = theOther.closed; // not copied as in copy constructor
+    myPoints = theOther.myPoints;
+    return *this;
+  }
+
   //! Adds a point at the end of the SectionLine.
   Standard_EXPORT void Append (const Intf_SectionPoint& Pi);