From ee223f807b97d4235d009a224f02186ac45749ee Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 16 Dec 2007 16:59:24 +0000 Subject: [PATCH] fixing string param git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index 5b7f7d684e..beee3a6e18 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -413,7 +413,7 @@ void wxFontRefData::MacFindFont() // use font descriptor caching #if 1 - wxString lookupname = wxString::Format( "%s_%ld", m_faceName, traits ); + wxString lookupname = wxString::Format( "%s_%ld", m_faceName.c_str(), traits ); static std::map< std::wstring , wxCFRef< CTFontDescriptorRef > > fontdescriptorcache ; @@ -431,7 +431,7 @@ void wxFontRefData::MacFindFont() // use font caching #if 1 - wxString lookupnameWithSize = wxString::Format( "%s_%ld_%ld", m_faceName, traits, m_pointSize ); + wxString lookupnameWithSize = wxString::Format( "%s_%ld_%ld", m_faceName.c_str(), traits, m_pointSize ); static std::map< std::wstring , wxCFRef< CTFontRef > > fontcache ; m_ctFont = fontcache[ std::wstring(lookupnameWithSize.wc_str()) ]; -- 2.45.2