From e450f818830153295a7783dac3a85fa1a95b4c8a Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 21 Mar 2012 10:28:01 +0400 Subject: [PATCH] 0023013: Fails to build with gcc 4.6.3 Changes: Removed unnecessary cast in BRepClass3d_SClassifier::PerformInfinitePoint function --- src/BRepClass3d/BRepClass3d_SClassifier.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BRepClass3d/BRepClass3d_SClassifier.cxx b/src/BRepClass3d/BRepClass3d_SClassifier.cxx index 5b8a24265e..1e2219b3d7 100755 --- a/src/BRepClass3d/BRepClass3d_SClassifier.cxx +++ b/src/BRepClass3d/BRepClass3d_SClassifier.cxx @@ -82,7 +82,7 @@ void BRepClass3d_SClassifier::PerformInfinitePoint(BRepClass3d_SolidExplorer& aS Standard_Real aParam, aU1, aV1, aU2, aV2; gp_Pnt A,B; gp_Dir aDN1, aDN2; - TopoDS_Face aF, aF1, aF2; + TopoDS_Face aF1, aF2; // nump = 0; aParam = 0.5; @@ -90,7 +90,7 @@ void BRepClass3d_SClassifier::PerformInfinitePoint(BRepClass3d_SolidExplorer& aS myState=2; for(aSE.InitShell(); aSE.MoreShell() && nump<2; aSE.NextShell()) { for(aSE.InitFace(); aSE.MoreFace() && nump<2; ) { - aF =*((TopoDS_Face*)&aSE.CurrentFace()); + TopoDS_Face aF = aSE.CurrentFace(); aSE.NextFace(); if(!nump) { nump++;