mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -1017,16 +1017,18 @@ static void SelectSameShape (TNaming_Node*& myNode,
|
||||
else Valid = pdn->IsValidInTrans(Trans);
|
||||
|
||||
if (Valid)
|
||||
{
|
||||
if (Old) {
|
||||
if( pdn->myOld == RS && pdn->myNew != 0L && pdn->myNew != RS) {
|
||||
break;
|
||||
}
|
||||
if( pdn->myOld == RS && pdn->myNew != 0L && pdn->myNew != RS) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if( pdn->myNew == RS && pdn->myOld != 0L && pdn->myOld != RS) {
|
||||
break;
|
||||
}
|
||||
if( pdn->myNew == RS && pdn->myOld != 0L && pdn->myOld != RS) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
pdn = pdn->NextSameShape(RS);
|
||||
}
|
||||
myNode = pdn;
|
||||
|
Reference in New Issue
Block a user