Fix harmless warning about comparing values of different enums

This avoids a bunch of -Wenum-compare-switch warnings from clang 6.
This commit is contained in:
Vadim Zeitlin
2017-12-30 18:51:05 +01:00
parent 6c7aaa9e95
commit c65eaac529

View File

@@ -1097,8 +1097,8 @@ void wxPostScriptDCImpl::SetPSFont()
wxString name; wxString name;
switch ( m_font.GetFamily() ) switch ( m_font.GetFamily() )
{ {
case wxTELETYPE: case wxFONTFAMILY_TELETYPE:
case wxMODERN: case wxFONTFAMILY_MODERN:
{ {
if (Style == wxFONTSTYLE_ITALIC) if (Style == wxFONTSTYLE_ITALIC)
{ {
@@ -1116,7 +1116,7 @@ void wxPostScriptDCImpl::SetPSFont()
} }
break; break;
} }
case wxROMAN: case wxFONTFAMILY_ROMAN:
{ {
if (Style == wxFONTSTYLE_ITALIC) if (Style == wxFONTSTYLE_ITALIC)
{ {
@@ -1134,12 +1134,12 @@ void wxPostScriptDCImpl::SetPSFont()
} }
break; break;
} }
case wxSCRIPT: case wxFONTFAMILY_SCRIPT:
{ {
name = wxS("/ZapfChancery-MediumItalic"); name = wxS("/ZapfChancery-MediumItalic");
break; break;
} }
case wxSWISS: case wxFONTFAMILY_SWISS:
default: default:
{ {
if (Style == wxFONTSTYLE_ITALIC) if (Style == wxFONTSTYLE_ITALIC)