fix compilation after last change: wxCFStringRef doesn't exist in 2.8, wxMacCFStringHolder does

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-02-10 12:56:02 +00:00
parent e0c3d1e0d5
commit bd73a91b55

View File

@@ -2888,7 +2888,7 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory WXUNUSED(cat))
userLocaleRefRaw = CFLocaleCreate
(
kCFAllocatorDefault,
wxCFStringRef(wxGetLocale()->GetCanonicalName())
wxMacCFStringHolder(wxGetLocale()->GetCanonicalName())
);
}
else // no current locale, use the default one
@@ -2913,7 +2913,7 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory WXUNUSED(cat))
wxFAIL_MSG( "Unknown locale info" );
}
wxCFStringRef
wxMacCFStringHolder
str(CFStringCreateCopy(NULL, static_cast<CFStringRef>(cfstr)));
return str.AsString();
}