X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfe590ae1d2d65ddc03c13171621cfa1b233ac7b..0e859e32234b3178254146f31653f478de0c5fba:/src/mac/carbon/fontdlg.cpp?ds=sidebyside diff --git a/src/mac/carbon/fontdlg.cpp b/src/mac/carbon/fontdlg.cpp index ab69a605f9..67c5ff37a5 100644 --- a/src/mac/carbon/fontdlg.cpp +++ b/src/mac/carbon/fontdlg.cpp @@ -45,8 +45,8 @@ // wxFontDialog stub for mac OS's without a native font dialog // --------------------------------------------------------------------------- -static const wxChar *wxFontFamilyIntToString(int family); -static int wxFontFamilyStringToInt(const wxChar *family); +static const wxChar *FontFamilyIntToString(int family); +static int FontFamilyStringToInt(const wxChar *family); //----------------------------------------------------------------------------- @@ -496,7 +496,7 @@ void wxFontDialog::InitializeControls() wxString facename = m_dialogFont.GetFaceName(); if (facename.empty() || m_facenameCtrl->FindString(facename) == wxNOT_FOUND) { - facename = wxFontFamilyIntToString(m_dialogFont.GetFamily()); + facename = FontFamilyIntToString(m_dialogFont.GetFamily()); } m_facenameCtrl->SetStringSelection(facename); @@ -521,7 +521,7 @@ void wxFontDialog::ChangeFont() int size = m_sizeCtrl->GetValue(); wxString facename = m_facenameCtrl->GetStringSelection(); - int family = wxFontFamilyStringToInt(facename); + int family = FontFamilyStringToInt(facename); if (family == -1) family = wxDEFAULT; else @@ -555,7 +555,7 @@ void wxFontDialog::OnPanelClose() { } -const wxChar *wxFontFamilyIntToString(int family) +const wxChar *FontFamilyIntToString(int family) { switch (family) { @@ -575,12 +575,12 @@ const wxChar *wxFontFamilyIntToString(int family) } } -int wxFontFamilyStringToInt(const wxChar *family) +int FontFamilyStringToInt(const wxChar *family) { if (!family) return wxSWISS; - if (wxStrcmp(family, _("")) == 0) return wxROMAN; else if (wxStrcmp(family, _("")) == 0) return wxDECORATIVE;