From: ssv Date: Thu, 2 Jul 2015 10:27:38 +0000 (+0300) Subject: Get() method of Poly_Element was made const X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=f3a397c320c69604c4d295a37fa4eebc7f4e2994;p=occt-copy.git Get() method of Poly_Element was made const --- diff --git a/src/Poly/Poly_Element.cxx b/src/Poly/Poly_Element.cxx index 51e565b49d..28011efce3 100644 --- a/src/Poly/Poly_Element.cxx +++ b/src/Poly/Poly_Element.cxx @@ -53,7 +53,7 @@ void Poly_Element::Set (const Standard_Integer theTriangle1, //======================================================================= void Poly_Element::Get (Standard_Integer& theTriangle1, - Standard_Integer& theTriangle2) + Standard_Integer& theTriangle2) const { theTriangle1 = myTriangles[0]; theTriangle2 = myTriangles[1]; diff --git a/src/Poly/Poly_Element.hxx b/src/Poly/Poly_Element.hxx index 34b5dbd550..16dd977fd3 100644 --- a/src/Poly/Poly_Element.hxx +++ b/src/Poly/Poly_Element.hxx @@ -41,7 +41,7 @@ public: //! Returns the triangles indices of this element in theTriangle1, theTriangle2. Standard_EXPORT void Get (Standard_Integer& theTriangle1, - Standard_Integer& theTriangle2); + Standard_Integer& theTriangle2) const; //! @return the triangle index of given element theIndex. //! Raises OutOfRange from Standard if theIndex is not in 1,2.