Avoid g++ warning about unhandled wxFONTFAMILY_XXX value in a switch.

Add wxFONTFAMILY_UNKNOWN case to the switch as it will allow us to be warned
if we add a new family in the future and forget to update this code to take it
into account.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-01-26 09:01:08 +00:00
parent 0369a9fedf
commit a4a0bff166

View File

@@ -663,6 +663,10 @@ void wxNativeFontInfo::SetFamily(wxFontFamily family)
case wxFONTFAMILY_DEFAULT:
ff_family = FF_SWISS;
break;
case wxFONTFAMILY_UNKNOWN:
wxFAIL_MSG( "invalid font family" );
return;
}
wxCHECK_RET( ff_family != FF_DONTCARE, "unknown wxFontFamily" );