More use of wxFALLTHROUGH
This commit is contained in:
@@ -354,7 +354,7 @@ static void bg(GtkStyleContext* sc, wxColour& color, int state = GTK_STATE_FLAG_
|
|||||||
{
|
{
|
||||||
case CAIRO_FORMAT_ARGB32:
|
case CAIRO_FORMAT_ARGB32:
|
||||||
a = guchar(pixel >> 24);
|
a = guchar(pixel >> 24);
|
||||||
// fallthrough
|
wxFALLTHROUGH;
|
||||||
case CAIRO_FORMAT_RGB24:
|
case CAIRO_FORMAT_RGB24:
|
||||||
r = guchar(pixel >> 16);
|
r = guchar(pixel >> 16);
|
||||||
g = guchar(pixel >> 8);
|
g = guchar(pixel >> 8);
|
||||||
@@ -451,7 +451,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// fall through
|
wxFALLTHROUGH;
|
||||||
case wxSYS_COLOUR_3DLIGHT:
|
case wxSYS_COLOUR_3DLIGHT:
|
||||||
case wxSYS_COLOUR_ACTIVEBORDER:
|
case wxSYS_COLOUR_ACTIVEBORDER:
|
||||||
case wxSYS_COLOUR_BTNFACE:
|
case wxSYS_COLOUR_BTNFACE:
|
||||||
@@ -491,7 +491,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// fall through
|
wxFALLTHROUGH;
|
||||||
case wxSYS_COLOUR_BTNTEXT:
|
case wxSYS_COLOUR_BTNTEXT:
|
||||||
sc = ButtonLabelContext(path);
|
sc = ButtonLabelContext(path);
|
||||||
fg(sc, color);
|
fg(sc, color);
|
||||||
@@ -505,7 +505,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// fall through
|
wxFALLTHROUGH;
|
||||||
case wxSYS_COLOUR_GRAYTEXT:
|
case wxSYS_COLOUR_GRAYTEXT:
|
||||||
sc = StyleContext(path, GTK_TYPE_LABEL, "label");
|
sc = StyleContext(path, GTK_TYPE_LABEL, "label");
|
||||||
fg(sc, color, GTK_STATE_FLAG_INSENSITIVE);
|
fg(sc, color, GTK_STATE_FLAG_INSENSITIVE);
|
||||||
|
@@ -800,6 +800,7 @@ void DateTimeTestCase::TestTimeFormat()
|
|||||||
dt2.SetYear(dt.GetYear());
|
dt2.SetYear(dt.GetYear());
|
||||||
}
|
}
|
||||||
// fall through and compare everything
|
// fall through and compare everything
|
||||||
|
wxFALLTHROUGH;
|
||||||
|
|
||||||
case CompareBoth:
|
case CompareBoth:
|
||||||
CPPUNIT_ASSERT_EQUAL( dt, dt2 );
|
CPPUNIT_ASSERT_EQUAL( dt, dt2 );
|
||||||
|
Reference in New Issue
Block a user