X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bf5a59b5e058bebffcf9d87f03550b4ecf93e73..49dcf8bfb80ab5571f81b57f86051a6f4fcad677:/src/cocoa/font.cpp diff --git a/src/cocoa/font.cpp b/src/cocoa/font.cpp index 485e447653..7133060f8f 100644 --- a/src/cocoa/font.cpp +++ b/src/cocoa/font.cpp @@ -17,6 +17,7 @@ #include "wx/string.h" #include "wx/font.h" #include "wx/gdicmn.h" +#include "wx/encinfo.h" #if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) @@ -188,7 +189,7 @@ void wxFont::SetUnderlined(bool underlined) /* New font system */ wxString wxFont::GetFaceName() const { - wxString str(""); + wxString str; if (M_FONTDATA) str = M_FONTDATA->m_faceName ; return str;