Skip to content
Snippets Groups Projects
Commit 30dcadfd authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap:
Browse files

Adding default to switch to remove warnings and explicit falltrough

parent b8c2283d
Branches axisActorWarningsFix
No related tags found
No related merge requests found
Pipeline #
......@@ -1203,6 +1203,9 @@ void vtkAxisActor::SetLabelPositions2D(vtkViewport *viewport, bool force)
xcoeff = 1.0;
ycoeff = 0.5;
break;
default:
// shouldn't get here
break;
}
int ptIdx;
......@@ -1383,6 +1386,7 @@ void vtkAxisActor::BuildTitle(bool force)
{
case (VTK_ALIGN_TOP):
vertOffsetSign = -1;
VTK_FALLTHROUGH;
// NO BREAK
case (VTK_ALIGN_BOTTOM):
// Position to center of axis
......@@ -1407,6 +1411,9 @@ void vtkAxisActor::BuildTitle(bool force)
}
offset[0] += this->ScreenSize * halfTitleWidth + 3;
break;
default:
// shouldn't get there
break;
}
if (this->TickVisibility &&
......@@ -1514,6 +1521,7 @@ void vtkAxisActor::BuildExponent(bool force)
{
case (VTK_ALIGN_TOP):
offsetSign = -1;
VTK_FALLTHROUGH;
// NO BREAK
case (VTK_ALIGN_BOTTOM):
// Position to center of axis
......@@ -1538,6 +1546,9 @@ void vtkAxisActor::BuildExponent(bool force)
}
offset[0] += this->ScreenSize * halfExponentWidth + 3;
break;
default:
// shouldn't get there
break;
}
if (this->TickVisibility &&
......@@ -1801,7 +1812,7 @@ void vtkAxisActor::PrintSelf(ostream& os, vtkIndent indent)
break;
default:
// shouldn't get here
;
break;
}
os << indent << "DeltaMajor: "
......@@ -2583,6 +2594,10 @@ bool vtkAxisActor::BuildTickPoints(double p1[3], double p2[3], bool force)
memcpy(&coordSystem[1], this->AxisBaseForX, 3*sizeof(double));
memcpy(&coordSystem[2], this->AxisBaseForY, 3*sizeof(double));
break;
default:
// shouldn't get here
break;
}
//-----------------------------------------------------------------------------*
......@@ -2656,6 +2671,9 @@ void vtkAxisActor::BuildAxisGridLines(double p1[3], double p2[3], double localCo
vGridLength = this->GridlineYLength;
uIndex = 0; vIndex = 1;
break;
default:
// shouldn't get here
break;
}
bool hasOrthogonalVectorBase =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment