mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024171: Eliminate CLang compiler warning -Wreorder
Got rid of -Wreorder warning (wrong fields' initialization order); some warnings -Wdangling-else are also fixed
This commit is contained in:
@@ -110,13 +110,15 @@ void ShapeProcessAPI_ApplySequence::PrintPreparationResult () const
|
||||
Standard_Integer SS = 0, SN = 0, FF = 0, FS = 0, FN = 0;
|
||||
for (TopTools_DataMapIteratorOfDataMapOfShapeShape It (myContext->Map()); It.More(); It.Next()) {
|
||||
TopoDS_Shape keyshape = It.Key(), valueshape = It.Value();
|
||||
if (keyshape.ShapeType() == TopAbs_SHELL)
|
||||
if (keyshape.ShapeType() == TopAbs_SHELL) {
|
||||
if (valueshape.IsNull()) SN++;
|
||||
else SS++;
|
||||
else if (keyshape.ShapeType() == TopAbs_FACE)
|
||||
}
|
||||
else if (keyshape.ShapeType() == TopAbs_FACE) {
|
||||
if (valueshape.IsNull()) FN++;
|
||||
else if (valueshape.ShapeType() == TopAbs_SHELL) FS++;
|
||||
else FF++;
|
||||
}
|
||||
}
|
||||
|
||||
Handle(Message_Messenger) aMessenger = myContext->Messenger();
|
||||
|
Reference in New Issue
Block a user