0031004: Coding - eliminate warnings issued by gcc 9.1.0
[occt.git] / src / IntRes2d / IntRes2d_Intersection.hxx
index ab39e3b..3553054 100644 (file)
@@ -87,6 +87,16 @@ protected:
   
     IntRes2d_Intersection(const IntRes2d_Intersection& Other);
 
+    //! Assignment
+    IntRes2d_Intersection& operator= (const IntRes2d_Intersection& theOther)
+    {
+      done = theOther.done;
+      reverse = theOther.reverse;
+      lpnt = theOther.lpnt;
+      lseg = theOther.lseg;
+      return *this;
+    }
+
   //! Destructor is protected, for safe inheritance
   ~IntRes2d_Intersection () {}
   
@@ -104,18 +114,12 @@ protected:
   
     Standard_Boolean ReversedParameters() const;
 
+protected:
 
-  Standard_Boolean done;
-
-
-private:
-
-
-
-  Standard_Boolean reverse;
   IntRes2d_SequenceOfIntersectionPoint lpnt;
   IntRes2d_SequenceOfIntersectionSegment lseg;
-
+  Standard_Boolean done;
+  Standard_Boolean reverse;
 
 };