]> git.saurik.com Git - wxWidgets.git/commitdiff
safer GetFeature implementation: assert on unknown feature
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 8 Aug 2006 10:15:15 +0000 (10:15 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 8 Aug 2006 10:15:15 +0000 (10:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mgl/settings.cpp

index 6254a65ed99ae3968e8144f69481cfb702c7fd57..01ca9d65b955b5e6392afeb44d335e4ede229151 100644 (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;