Commit 5f347def authored by Frederik Gladhorn's avatar Frederik Gladhorn

Make sure all enum values are covered in switch statements

parent 88b6c7ea
......@@ -162,6 +162,8 @@ void KisVisualColorSelector::slotRebuildSelectors()
case Y:
channel1 = 2;
break;
default:
Q_ASSERT_X(false, "", "Invalid acs_config.subTypeParameter");
}
switch(m_d->acs_config.mainTypeParameter)
......@@ -227,6 +229,8 @@ void KisVisualColorSelector::slotRebuildSelectors()
channel2 = 1;
channel3 = 2;
break;
default:
Q_ASSERT_X(false, "", "Invalid acs_config.mainTypeParameter");
}
if (m_d->acs_config.mainType==Triangle) {
modelS = KisVisualColorSelectorShape::HSV;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment