X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f450b5cf10f898d0c37bb3bc149f0bbe73f95c19..68ca12fef650ce4622e05ba4eb21a7aa23849107:/src/os2/menuitem.cpp diff --git a/src/os2/menuitem.cpp b/src/os2/menuitem.cpp index f0b69b5f79..193a679348 100644 --- a/src/os2/menuitem.cpp +++ b/src/os2/menuitem.cpp @@ -180,7 +180,7 @@ bool wxMenuItem::IsChecked() const return (uFlag & MIA_CHECKED) == MIA_CHECKED ; } // end of wxMenuItem::IsChecked -wxString wxMenuItemBase::GetLabelFromText( +wxString wxMenuItemBase::GetLabelText( const wxString& rsText ) { @@ -199,7 +199,7 @@ wxString wxMenuItemBase::GetLabelFromText( sLabel += *zPc; } return sLabel; -} // end of wxMenuItemBase::GetLabelFromText +} // end of wxMenuItemBase::GetLabelText // // Radio group stuff @@ -363,7 +363,7 @@ void wxMenuItem::Check( wxMenuItemBase::Check(bCheck); } // end of wxMenuItem::Check -void wxMenuItem::SetText( const wxString& rText ) +void wxMenuItem::SetItemLabel( const wxString& rText ) { // // Don't do anything if label didn't change @@ -374,7 +374,7 @@ void wxMenuItem::SetText( const wxString& rText ) return; // wxMenuItemBase will do stock ID checks - wxMenuItemBase::SetText(sText); + wxMenuItemBase::SetItemLabel(sText); // m_text could now be different from 'text' if we are a stock menu item, // so use only m_text below @@ -427,7 +427,7 @@ void wxMenuItem::SetText( const wxString& rText ) #endif //owner drawn { uFlagsOld |= MIS_TEXT; - pData = m_text.char_str(); + pData = (char*) m_text.wx_str(); } //