From e7b01db7c43903caf57228808714812d0fdd42c1 Mon Sep 17 00:00:00 2001 From: msv Date: Mon, 7 Nov 2016 20:05:58 +0300 Subject: [PATCH] 0028065: [Regression to 7.0] The method HLRAppli_ReflectLines::GetResult must be const --- src/HLRAppli/HLRAppli_ReflectLines.cxx | 4 ++-- src/HLRAppli/HLRAppli_ReflectLines.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/HLRAppli/HLRAppli_ReflectLines.cxx b/src/HLRAppli/HLRAppli_ReflectLines.cxx index 9a6fe77211..b63708e2d4 100644 --- a/src/HLRAppli/HLRAppli_ReflectLines.cxx +++ b/src/HLRAppli/HLRAppli_ReflectLines.cxx @@ -92,7 +92,7 @@ void HLRAppli_ReflectLines::Perform() TopoDS_Shape HLRAppli_ReflectLines::GetCompoundOf3dEdges(const HLRBRep_TypeOfResultingEdge type, const Standard_Boolean visible, - const Standard_Boolean In3d) + const Standard_Boolean In3d) const { HLRBRep_HLRToShape aHLRToShape( myHLRAlgo ); @@ -108,7 +108,7 @@ TopoDS_Shape HLRAppli_ReflectLines::GetCompoundOf3dEdges(const HLRBRep_TypeOfRes //purpose : //======================================================================= -TopoDS_Shape HLRAppli_ReflectLines::GetResult() +TopoDS_Shape HLRAppli_ReflectLines::GetResult() const { return GetCompoundOf3dEdges(HLRBRep_OutLine, Standard_True, Standard_True); } diff --git a/src/HLRAppli/HLRAppli_ReflectLines.hxx b/src/HLRAppli/HLRAppli_ReflectLines.hxx index 2ad5326913..0ae15dc548 100644 --- a/src/HLRAppli/HLRAppli_ReflectLines.hxx +++ b/src/HLRAppli/HLRAppli_ReflectLines.hxx @@ -51,14 +51,14 @@ public: //! returns resulting compound of reflect lines //! represented by edges in 3d - Standard_EXPORT TopoDS_Shape GetResult(); + Standard_EXPORT TopoDS_Shape GetResult() const; //! returns resulting compound of lines //! of specified type and visibility //! represented by edges in 3d or 2d Standard_EXPORT TopoDS_Shape GetCompoundOf3dEdges(const HLRBRep_TypeOfResultingEdge type, const Standard_Boolean visible, - const Standard_Boolean In3d); + const Standard_Boolean In3d) const; -- 2.20.1