safer GetFeature implementation: assert on unknown feature

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2006-08-08 10:15:15 +00:00
parent 17d704e804
commit b626fee238

View File

@@ -108,12 +108,12 @@ bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
switch (index)
{
case wxSYS_CAN_ICONIZE_FRAME:
return false;
case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
case wxSYS_TABLET_PRESENT:
return false;
default:
{
}
wxFAIL_MSG( _T("unknown feature") );
}
return false;