mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024085: Eliminate compiler warning C4706 in MSVC++ with warning level 4
Got rid from most cases which led to Warning c4706 Tiny code style corrections
This commit is contained in:
@@ -18,10 +18,6 @@
|
||||
// purpose or non-infringement. Please see the License for the specific terms
|
||||
// and conditions governing the rights and limitations under the License.
|
||||
|
||||
|
||||
|
||||
// Modified by skv - Fri Mar 4 12:07:34 2005 OCC7966
|
||||
|
||||
#include <BRepClass3d_Intersector3d.ixx>
|
||||
|
||||
#include <IntCurveSurface_IntersectionPoint.hxx>
|
||||
@@ -29,7 +25,6 @@
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopAbs.hxx>
|
||||
|
||||
|
||||
#include <IntCurveSurface_HInter.hxx>
|
||||
#include <BRepAdaptor_HSurface.hxx>
|
||||
#include <Geom_Line.hxx>
|
||||
@@ -61,18 +56,15 @@ void BRepClass3d_Intersector3d::Perform(const gp_Lin& L,
|
||||
|
||||
surface.Initialize(Face,Standard_True);
|
||||
|
||||
Standard_Boolean IsUPer, IsVPer;
|
||||
Standard_Real uperiod=0, vperiod=0;
|
||||
if ((IsUPer = surface.IsUPeriodic()))
|
||||
uperiod = surface.UPeriod();
|
||||
if ((IsVPer = surface.IsVPeriodic()))
|
||||
vperiod = surface.VPeriod();
|
||||
const Standard_Boolean IsUPer = surface.IsUPeriodic();
|
||||
const Standard_Boolean IsVPer = surface.IsVPeriodic();
|
||||
const Standard_Real uperiod = IsUPer ? surface.UPeriod() : 0.0;
|
||||
const Standard_Real vperiod = IsVPer ? surface.VPeriod() : 0.0;
|
||||
|
||||
Standard_Real U1, U2, V1, V2;
|
||||
U1 = surface.FirstUParameter();
|
||||
U2 = surface.LastUParameter();
|
||||
V1 = surface.FirstVParameter();
|
||||
V2 = surface.LastVParameter();
|
||||
Standard_Real U1 = surface.FirstUParameter();
|
||||
Standard_Real U2 = surface.LastUParameter();
|
||||
Standard_Real V1 = surface.FirstVParameter();
|
||||
Standard_Real V2 = surface.LastVParameter();
|
||||
|
||||
//--
|
||||
Handle(GeomAdaptor_HCurve) HLL = new GeomAdaptor_HCurve(LL);
|
||||
@@ -140,6 +132,3 @@ void BRepClass3d_Intersector3d::Perform(const gp_Lin& L,
|
||||
} //-- Loop on Intersection points.
|
||||
} //-- HICS.IsDone()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user