mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
@@ -122,8 +122,9 @@ Standard_Boolean BRepTools_GTrsfModification::NewSurface
|
||||
S2->SetPole(i, j, P);
|
||||
}
|
||||
}
|
||||
else
|
||||
Standard_NoSuchObject_Raise_if(1,"BRepTools_GTrsfModification : Pb no BSpline/Bezier Type Surface");
|
||||
else{
|
||||
Standard_NoSuchObject::Raise("BRepTools_GTrsfModification : Pb no BSpline/Bezier Type Surface");
|
||||
}
|
||||
|
||||
L.Identity();
|
||||
return Standard_True;
|
||||
@@ -170,8 +171,9 @@ Standard_Boolean BRepTools_GTrsfModification::NewCurve
|
||||
C2->SetPole(i, P);
|
||||
}
|
||||
}
|
||||
else
|
||||
Standard_NoSuchObject_Raise_if(1,"BRepTools_GTrsfModification : Pb no BSpline/Bezier Type Curve");
|
||||
else {
|
||||
Standard_NoSuchObject::Raise("BRepTools_GTrsfModification : Pb no BSpline/Bezier Type Curve");
|
||||
}
|
||||
C = new Geom_TrimmedCurve(C, f, l);
|
||||
}
|
||||
L.Identity() ;
|
||||
|
Reference in New Issue
Block a user