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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user