]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/fontutil.cpp
Use the new wx_truncate_cast for any narrowing conversions
[wxWidgets.git] / src / unix / fontutil.cpp
index 022d8e1d4e4073621cda5b3a712ba693cd13c5f9..cf77187acba91b7e494dbb1bcb7dd060b7e22727 100644 (file)
@@ -254,7 +254,7 @@ void wxNativeFontInfo::SetUnderlined(bool WXUNUSED(underlined))
     wxFAIL_MSG( _T("not implemented") );
 }
 
-void wxNativeFontInfo::SetFaceName(wxString facename)
+void wxNativeFontInfo::SetFaceName(const wxString& facename)
 {
     pango_font_description_set_family( description, wxGTK_CONV(facename) );
 }
@@ -753,7 +753,7 @@ void wxNativeFontInfo::SetUnderlined(bool WXUNUSED(underlined))
     // can't do this under X
 }
 
-void wxNativeFontInfo::SetFaceName(wxString facename)
+void wxNativeFontInfo::SetFaceName(const wxString& facename)
 {
     SetXFontComponent(wxXLFD_FAMILY, facename);
 }