mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
Elimination of compiler warnings
This commit is contained in:
parent
3b77eff652
commit
811d6b7d4a
@ -774,17 +774,17 @@ Standard_Boolean BOPAlgo_CellsBuilder::RemoveInternals(const BOPCol_ListOfShape&
|
|||||||
const TopTools_ListOfShape& aLSGen = anUnify.Generated(aSS);
|
const TopTools_ListOfShape& aLSGen = anUnify.Generated(aSS);
|
||||||
TopTools_ListIteratorOfListOfShape aIt(aLSGen);
|
TopTools_ListIteratorOfListOfShape aIt(aLSGen);
|
||||||
for (; aIt.More(); aIt.Next()) {
|
for (; aIt.More(); aIt.Next()) {
|
||||||
const TopoDS_Shape& aShape = aIt.Value();
|
const TopoDS_Shape& aSU = aIt.Value();
|
||||||
if (!aShape.IsNull() && !aSS.IsSame(aShape)) {
|
if (!aSU.IsNull() && !aSS.IsSame(aSU)) {
|
||||||
myMapGenerated.Bind(aSS, aShape);
|
myMapGenerated.Bind(aSS, aSU);
|
||||||
bRemoved = Standard_True;
|
bRemoved = Standard_True;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const TopTools_ListOfShape& aLSMod = anUnify.Modified(aSS);
|
const TopTools_ListOfShape& aLSMod = anUnify.Modified(aSS);
|
||||||
for (aIt.Init(aLSMod); aIt.More(); aIt.Next()) {
|
for (aIt.Init(aLSMod); aIt.More(); aIt.Next()) {
|
||||||
const TopoDS_Shape& aShape = aIt.Value();
|
const TopoDS_Shape& aSU = aIt.Value();
|
||||||
if (!aShape.IsNull() && !aSS.IsSame(aShape)) {
|
if (!aSU.IsNull() && !aSS.IsSame(aSU)) {
|
||||||
myMapGenerated.Bind(aSS, aShape);
|
myMapGenerated.Bind(aSS, aSU);
|
||||||
bRemoved = Standard_True;
|
bRemoved = Standard_True;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -851,7 +851,7 @@ Standard_Boolean BOPAlgo_CellsBuilder::RemoveInternals(const BOPCol_ListOfShape&
|
|||||||
//
|
//
|
||||||
if (aNb == aLFUnique.Extent()) {
|
if (aNb == aLFUnique.Extent()) {
|
||||||
// no faces to remove
|
// no faces to remove
|
||||||
TopoDS_Iterator aItS(aCB);
|
aItS.Initialize(aCB);
|
||||||
for (; aItS.More(); aItS.Next()) {
|
for (; aItS.More(); aItS.Next()) {
|
||||||
theLSNew.Append(aItS.Value());
|
theLSNew.Append(aItS.Value());
|
||||||
}
|
}
|
||||||
@ -866,7 +866,7 @@ Standard_Boolean BOPAlgo_CellsBuilder::RemoveInternals(const BOPCol_ListOfShape&
|
|||||||
if (aBS.ErrorStatus() || aBS.Areas().Extent() != 1) {
|
if (aBS.ErrorStatus() || aBS.Areas().Extent() != 1) {
|
||||||
myWarningStatus |= RemovalOfIBForSolidsFailed;
|
myWarningStatus |= RemovalOfIBForSolidsFailed;
|
||||||
//
|
//
|
||||||
TopoDS_Iterator aItS(aCB);
|
aItS.Initialize(aCB);
|
||||||
for (; aItS.More(); aItS.Next()) {
|
for (; aItS.More(); aItS.Next()) {
|
||||||
theLSNew.Append(aItS.Value());
|
theLSNew.Append(aItS.Value());
|
||||||
}
|
}
|
||||||
|
@ -439,7 +439,7 @@ void BRepOffsetAPI_DraftAngle::CorrectWires()
|
|||||||
// tolerance of intersecting edges
|
// tolerance of intersecting edges
|
||||||
Standard_Real aTolCmp = Max(aTolCurE, aTolE);
|
Standard_Real aTolCmp = Max(aTolCurE, aTolE);
|
||||||
//
|
//
|
||||||
Standard_Integer k, aNbIntPnt = aGInter.NbPoints();
|
Standard_Integer aNbIntPnt = aGInter.NbPoints();
|
||||||
for (k = 1; k <= aNbIntPnt; ++k) {
|
for (k = 1; k <= aNbIntPnt; ++k) {
|
||||||
const IntRes2d_IntersectionPoint& aP2DInt = aGInter.Point(k);
|
const IntRes2d_IntersectionPoint& aP2DInt = aGInter.Point(k);
|
||||||
const gp_Pnt2d& aP2D = aP2DInt.Value();
|
const gp_Pnt2d& aP2D = aP2DInt.Value();
|
||||||
|
@ -1382,8 +1382,8 @@ Standard_Integer unifysamedomgen(Draw_Interpretor& di,
|
|||||||
aBB.MakeCompound(aRes);
|
aBB.MakeCompound(aRes);
|
||||||
TopTools_ListIteratorOfListOfShape aIt(aLS);
|
TopTools_ListIteratorOfListOfShape aIt(aLS);
|
||||||
for (; aIt.More(); aIt.Next()) {
|
for (; aIt.More(); aIt.Next()) {
|
||||||
const TopoDS_Shape& aShape = aIt.Value();
|
const TopoDS_Shape& aCurrentShape = aIt.Value();
|
||||||
aBB.Add(aRes, aShape);
|
aBB.Add(aRes, aCurrentShape);
|
||||||
}
|
}
|
||||||
DBRep::Set(a[1], aRes);
|
DBRep::Set(a[1], aRes);
|
||||||
}
|
}
|
||||||
@ -1419,8 +1419,8 @@ Standard_Integer unifysamedommod(Draw_Interpretor& di,
|
|||||||
aBB.MakeCompound(aRes);
|
aBB.MakeCompound(aRes);
|
||||||
TopTools_ListIteratorOfListOfShape aIt(aLS);
|
TopTools_ListIteratorOfListOfShape aIt(aLS);
|
||||||
for (; aIt.More(); aIt.Next()) {
|
for (; aIt.More(); aIt.Next()) {
|
||||||
const TopoDS_Shape& aShape = aIt.Value();
|
const TopoDS_Shape& aCurrentShape = aIt.Value();
|
||||||
aBB.Add(aRes, aShape);
|
aBB.Add(aRes, aCurrentShape);
|
||||||
}
|
}
|
||||||
DBRep::Set(a[1], aRes);
|
DBRep::Set(a[1], aRes);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user