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:
@@ -168,12 +168,12 @@ IGESToBRep_IGESBoundary::IGESToBRep_IGESBoundary(const IGESToBRep_CurveAndSurfac
|
||||
else if (len2d == 0)
|
||||
GTranslate2d = Standard_False;
|
||||
|
||||
if (GTranslate3d && GTranslate2d)
|
||||
if (GTranslate3d && GTranslate2d) {
|
||||
//Setting preference in the case of inconsitency between 3D and 2D
|
||||
if (myfilepreference == 2) Preferred3d = Standard_False;
|
||||
else if (myfilepreference == 3) Preferred2d = Standard_False;
|
||||
else Preferred3d = Standard_False;
|
||||
|
||||
}
|
||||
if (GTranslate3d && GTranslate2d && len3d != len2d) {
|
||||
GTranslate3d = Preferred3d;
|
||||
GTranslate2d = Preferred2d;
|
||||
|
Reference in New Issue
Block a user