1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0022693: Elimination Compiler warnings

This commit is contained in:
SZY 2011-12-16 13:18:52 +00:00 committed by bugmaster
parent 22a157d5ba
commit 446b69badc

View File

@ -241,10 +241,10 @@ const TopTools_IndexedDataMapOfShapeListOfShape& TNaming_Localizer::Ancestors
#else
TopAbs_ShapeEnum TA=TopAbs_COMPOUND;
#endif
if (TS == TopAbs_EDGE) TA = TopAbs_FACE;
if (TS == TopAbs_VERTEX) TA = TopAbs_EDGE;
if (TS == TopAbs_FACE) TA = TopAbs_SOLID;// 25.09.2009 - szy
if (TS == TopAbs_EDGE || TS == TopAbs_VERTEX || TS == TopAbs_FACE && TA >= In.ShapeType()) {
if (TS == TopAbs_VERTEX) TA = TopAbs_EDGE;
else if (TS == TopAbs_EDGE) TA = TopAbs_FACE;
else if (TS == TopAbs_FACE) TA = TopAbs_SOLID;
if ((TS == TopAbs_EDGE || TS == TopAbs_VERTEX || TS == TopAbs_FACE) && TA >= In.ShapeType()) {
TopExp::MapShapesAndAncestors(In, TS, TA, myAncestors.First());
}
else {