From c65eaac529c623b1357b34e32b58b59137f5a2a5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Dec 2017 18:51:05 +0100 Subject: [PATCH] Fix harmless warning about comparing values of different enums This avoids a bunch of -Wenum-compare-switch warnings from clang 6. --- src/generic/dcpsg.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index a6375b0c6b..295c7c7650 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -1097,8 +1097,8 @@ void wxPostScriptDCImpl::SetPSFont() wxString name; switch ( m_font.GetFamily() ) { - case wxTELETYPE: - case wxMODERN: + case wxFONTFAMILY_TELETYPE: + case wxFONTFAMILY_MODERN: { if (Style == wxFONTSTYLE_ITALIC) { @@ -1116,7 +1116,7 @@ void wxPostScriptDCImpl::SetPSFont() } break; } - case wxROMAN: + case wxFONTFAMILY_ROMAN: { if (Style == wxFONTSTYLE_ITALIC) { @@ -1134,12 +1134,12 @@ void wxPostScriptDCImpl::SetPSFont() } break; } - case wxSCRIPT: + case wxFONTFAMILY_SCRIPT: { name = wxS("/ZapfChancery-MediumItalic"); break; } - case wxSWISS: + case wxFONTFAMILY_SWISS: default: { if (Style == wxFONTSTYLE_ITALIC)