From f3a397c320c69604c4d295a37fa4eebc7f4e2994 Mon Sep 17 00:00:00 2001 From: ssv Date: Thu, 2 Jul 2015 13:27:38 +0300 Subject: [PATCH] Get() method of Poly_Element was made const --- src/Poly/Poly_Element.cxx | 2 +- src/Poly/Poly_Element.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.5