0031004: Coding - eliminate warnings issued by gcc 9.1.0
[occt.git] / src / Graphic3d / Graphic3d_CubeMapOrder.hxx
index ed0eeb1..cbdeafc 100644 (file)
@@ -138,6 +138,10 @@ public:
     return &Order;
   }
 
+  //! Copy constructor.
+  Graphic3d_ValidatedCubeMapOrder (const Graphic3d_ValidatedCubeMapOrder& theOther)
+  : Order (theOther.Order) {}
+
 public:
 
   const Graphic3d_CubeMapOrder Order; //!< Completely valid order
@@ -146,13 +150,11 @@ private:
 
   //! Only Graphic3d_CubeMapOrder can generate Graphic3d_ValidatedCubeMapOrder in 'Validated' method.
   Graphic3d_ValidatedCubeMapOrder(const Graphic3d_CubeMapOrder theOrder)
-    :
-    Order(theOrder)
-  {}
+  : Order(theOrder) {}
 
   //! Deleted 'operator='
   Graphic3d_ValidatedCubeMapOrder& operator= (const Graphic3d_ValidatedCubeMapOrder&);
 
 };
 
-#endif // _Graphic3d_CubeMapOrder_HeaderFile
\ No newline at end of file
+#endif // _Graphic3d_CubeMapOrder_HeaderFile