mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -100,7 +100,6 @@ class ShapeAnalysis_BoxBndTreeSelector
|
||||
Bnd_Box myLBox;
|
||||
Handle (TopTools_HArray1OfShape) mySeq;
|
||||
Standard_Boolean myShared;
|
||||
Standard_Integer myStatus;
|
||||
Standard_Integer myNb;
|
||||
TopoDS_Vertex myFVertex;
|
||||
TopoDS_Vertex myLVertex;
|
||||
@@ -110,6 +109,8 @@ class ShapeAnalysis_BoxBndTreeSelector
|
||||
Standard_Real myTol;
|
||||
Standard_Real myMin3d;
|
||||
TColStd_Array1OfInteger myArrIndices;
|
||||
Standard_Integer myStatus;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -374,12 +374,13 @@ static Standard_Boolean MinMaxSmall
|
||||
else return Standard_False;
|
||||
}
|
||||
// Now, check these two edge to define a strip !
|
||||
if (!E1.IsNull()&&!E2.IsNull())
|
||||
if (!E1.IsNull()&&!E2.IsNull()) {
|
||||
if(!CheckStripEdges (E1,E2,tol,dmax)) return Standard_False;
|
||||
else {
|
||||
myStatusStrip = ShapeExtend::EncodeStatus (ShapeExtend_DONE3);
|
||||
return Standard_True ;
|
||||
}
|
||||
else {
|
||||
myStatusStrip = ShapeExtend::EncodeStatus (ShapeExtend_DONE3);
|
||||
return Standard_True ;
|
||||
}
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
|
@@ -147,12 +147,13 @@ Handle(TColStd_HSequenceOfReal) ShapeAnalysis_TransferParametersProj::Perform
|
||||
}
|
||||
|
||||
//pdn correcting on periodic
|
||||
if(myCurve->IsClosed())
|
||||
if(myCurve->IsClosed()) {
|
||||
for(j = len; j >=1; j--)
|
||||
if(resKnots->Value(j) < maxPar)
|
||||
resKnots->SetValue(j,(To2d ? myAC3d.LastParameter() : myCurve->LastParameter())-(len-j)*preci);
|
||||
if(resKnots->Value(j) < maxPar)
|
||||
resKnots->SetValue(j,(To2d ? myAC3d.LastParameter() : myCurve->LastParameter())-(len-j)*preci);
|
||||
else
|
||||
break;
|
||||
break;
|
||||
}
|
||||
//pdn correction on range
|
||||
for ( j=1; j <= len; j++ ) {
|
||||
if ( resKnots->Value (j) < first ) resKnots->SetValue ( j, first );
|
||||
|
Reference in New Issue
Block a user