Avoid deprecation warnings for GetText (patch #1829903)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2007-11-11 22:25:52 +00:00
parent b1b09544bc
commit c96cf8d5d1

View File

@@ -201,7 +201,7 @@ void wxMenu::UpdateAccel(
//
// Find the (new) accel for this item
//
wxAcceleratorEntry* pAccel = wxAcceleratorEntry::Create(pItem->GetText());
wxAcceleratorEntry* pAccel = wxAcceleratorEntry::Create(pItem->GetItemLabel());
if (pAccel)
pAccel->m_command = pItem->GetId();
@@ -323,7 +323,7 @@ bool wxMenu::DoInsertOrAppend( wxMenuItem* pItem,
//
rItem.afStyle |= MIS_TEXT;
}
pData = (char*) pItem->GetText().wx_str();
pData = (char*) pItem->GetItemLabel().wx_str();
}
if (nPos == (size_t)-1)