1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation

This commit is contained in:
kgv
2017-04-08 14:50:24 +03:00
committed by bugmaster
parent 14c4193d11
commit c48e2889cd
68 changed files with 1691 additions and 1060 deletions

View File

@@ -639,18 +639,31 @@ void ChFi2d_Builder::UpDateHistory(const TopoDS_Edge& E1,
const Standard_Integer Id)
{
if (Id == 1) // the new edge is a fillet
{
fillets.Append(NewEdge);
else // the new edge is a chamfer
chamfers.Append(NewEdge);
if (history.IsBound(E1)) history.UnBind(E1);
if ( status != ChFi2d_FirstEdgeDegenerated
&& status != ChFi2d_BothEdgesDegenerated) {
if (!E1.IsSame(TrimE1)) history.Bind(E1, TrimE1);
}
if (history.IsBound(E2)) history.UnBind(E2);
if ( status != ChFi2d_LastEdgeDegenerated
&& status != ChFi2d_BothEdgesDegenerated) {
if (!E2.IsSame(TrimE2)) history.Bind(E2, TrimE2);
else // the new edge is a chamfer
{
chamfers.Append(NewEdge);
}
history.UnBind(E1);
if (status != ChFi2d_FirstEdgeDegenerated
&& status != ChFi2d_BothEdgesDegenerated)
{
if (!E1.IsSame(TrimE1))
{
history.Bind(E1, TrimE1);
}
}
history.UnBind(E2);
if (status != ChFi2d_LastEdgeDegenerated
&& status != ChFi2d_BothEdgesDegenerated)
{
if (!E2.IsSame(TrimE2))
{
history.Bind(E2, TrimE2);
}
}
} // UpDateHistory