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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user