OSStatus err = m_peer->GetData<ControlFontStyleRec>( kControlEntireControl, kControlFontStyleTag, &controlFont );
verify_noerr( err );
- wxMacCFStringHolder str( m_label, m_font.GetEncoding() );
+ wxCFStringRef str( m_label, GetFont().GetEncoding() );
#if wxMAC_USE_ATSU_TEXT
SInt16 baseline;
m_labelOrig = label;
m_label = RemoveMnemonics(label);
- wxMacCFStringHolder str( m_label, m_font.GetEncoding() );
+ wxCFStringRef str( m_label, GetFont().GetEncoding() );
OSStatus err = m_peer->SetData<CFStringRef>(kControlEntireControl, kControlStaticTextCFStringTag, str);
verify_noerr( err );
}