1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0024167: Compiler warnings 'unreacheable code' and 'conditional expression is constant' in MOA

Resolved some C4702 (unreachable code) and C4127 (conditional expression is constant).

small corrections in NoSuchObject invoking.

Macros names changing, deadcode deleting, re-writing "for" loops into equivalent "if" structures.

changed condition in "if" block, deadcode deleted.

Small changes in else statement.
This commit is contained in:
aml
2013-10-03 14:07:10 +04:00
committed by bugmaster
parent d9ec7d1d09
commit 3ed30348aa
7 changed files with 46 additions and 28 deletions

View File

@@ -259,9 +259,8 @@ static Standard_Boolean IsInside(const TopoDS_Wire& wir,
BRepTopAdaptor_FClass2d& /*FClass2d*/)
{
TopExp_Explorer exp;
for (exp.Init(wir,TopAbs_EDGE);
exp.More();
exp.Next()) {
exp.Init(wir,TopAbs_EDGE);
if (exp.More()) {
const TopoDS_Edge& edg = TopoDS::Edge(exp.Current());
Standard_Real f,l;
Handle(Geom2d_Curve) C2d = BRep_Tool::CurveOnSurface(edg,F,f,l);