Skip to content

Commit

Permalink
Sketcher: [skip ci] fix -Wimplicit-fallthrough=
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jun 10, 2020
1 parent c9480d7 commit bb86fe1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Mod/Sketcher/App/Sketch.cpp
Expand Up @@ -3684,6 +3684,7 @@ bool Sketch::hasDependentParameters(int geoId, PointPos pos) const
case mid: return Points[Geoms[geoId].midPointId].hasDependentParameters;break;
}
}
break;
case Line:
{
switch(pos) {
Expand All @@ -3693,6 +3694,7 @@ bool Sketch::hasDependentParameters(int geoId, PointPos pos) const
case mid: return false;break;
}
}
break;
case Arc:
{
switch(pos) {
Expand All @@ -3702,6 +3704,7 @@ bool Sketch::hasDependentParameters(int geoId, PointPos pos) const
case mid: return Points[Geoms[geoId].midPointId].hasDependentParameters;break;
}
}
break;
case Circle:
{
switch(pos) { // NOTE: points are added to all the cases, see addition.
Expand All @@ -3711,7 +3714,7 @@ bool Sketch::hasDependentParameters(int geoId, PointPos pos) const
case mid: return Points[Geoms[geoId].midPointId].hasDependentParameters;break;
}
}

break;
case Ellipse:
{
switch(pos) { // NOTE: points are added to all the cases, see addition.
Expand All @@ -3721,6 +3724,7 @@ bool Sketch::hasDependentParameters(int geoId, PointPos pos) const
case mid: return Points[Geoms[geoId].midPointId].hasDependentParameters;break;
}
}
break;
case ArcOfEllipse:
{
switch(pos) {
Expand All @@ -3730,6 +3734,7 @@ bool Sketch::hasDependentParameters(int geoId, PointPos pos) const
case mid: return Points[Geoms[geoId].midPointId].hasDependentParameters;break;
}
}
break;
case ArcOfHyperbola:
{
switch(pos) {
Expand All @@ -3739,6 +3744,7 @@ bool Sketch::hasDependentParameters(int geoId, PointPos pos) const
case mid: return Points[Geoms[geoId].midPointId].hasDependentParameters;break;
}
}
break;
case ArcOfParabola:
{
switch(pos) {
Expand All @@ -3748,6 +3754,7 @@ bool Sketch::hasDependentParameters(int geoId, PointPos pos) const
case mid: return Points[Geoms[geoId].midPointId].hasDependentParameters;break;
}
}
break;
case BSpline:
{
switch(pos) {
Expand All @@ -3757,6 +3764,7 @@ bool Sketch::hasDependentParameters(int geoId, PointPos pos) const
case mid: return false;break;
}
}
break;
case None:
return false; break;
}
Expand Down

0 comments on commit bb86fe1

Please sign in to comment.