OSStatus err = 0;
#if wxMAC_USE_NATIVE_TOOLBAR
- wxString labelStr;
- labelStr.Format(wxT("%xd"), (int)this);
+ wxString labelStr = wxString::Format(wxT("%xd"), (int)this);
err = HIToolbarCreate( wxMacCFStringHolder(labelStr, wxFont::GetDefaultEncoding() ) , 0 ,
(HIToolbarRef*) &m_macHIToolbarRef );
#if wxMAC_USE_NATIVE_TOOLBAR
HIToolbarItemRef item ;
- wxString labelStr;
- labelStr.Format(wxT("%xd"), (int)tool);
+ wxString labelStr = wxString::Format(wxT("%xd"), (int)tool);
err = HIToolbarItemCreate(
wxMacCFStringHolder(labelStr, wxFont::GetDefaultEncoding()),
kHIToolbarItemCantBeRemoved | kHIToolbarItemAnchoredLeft | kHIToolbarItemAllowDuplicates, &item );
// FIXME: doesn't work yet...
{
HIToolbarItemRef item;
- wxString labelStr;
- labelStr.Format( wxT("%xd"), (int) tool );
+ wxString labelStr = wxString::Format( wxT("%xd"), (int) tool );
result = HIToolbarItemCreate( wxMacCFStringHolder(labelStr, wxFont::GetDefaultEncoding()),
kHIToolbarItemCantBeRemoved | kHIToolbarItemAnchoredLeft | kHIToolbarItemAllowDuplicates,
&item );
}
else
{
- wxString errMsg;
- errMsg.Format( wxT("wxToolBar::DoInsertTool - failure [%ld]"), (long) err );
+ wxString errMsg = wxString::Format( wxT("wxToolBar::DoInsertTool - failure [%ld]"), (long) err );
wxASSERT_MSG( false, errMsg.c_str() );
}