X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de516ffeeaa179fc37b1c9c29dc3312b39bb6833..c7ff293b4280dfad1e4133b51d9e93d67c722752:/src/univ/menu.cpp diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index 962d1549ed..6fe24d28e9 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -1832,7 +1832,7 @@ void wxMenuBar::SetLabelTop(size_t pos, const wxString& label) wxString wxMenuBar::GetLabelTop(size_t pos) const { - wxCHECK_MSG( pos < GetCount(), _T(""), _T("invalid index in GetLabelTop") ); + wxCHECK_MSG( pos < GetCount(), wxEmptyString, _T("invalid index in GetLabelTop") ); return m_menuInfos[pos].GetLabel(); } @@ -2515,7 +2515,7 @@ bool wxWindow::DoPopupMenu(wxMenu *menu, int x, int y) // wxLogDebug( "Name of invoking window %s", menu->GetInvokingWindow()->GetName().c_str() ); - menu->Popup(ClientToScreen(wxPoint(x, y)), wxSize(0, 0)); + menu->Popup(ClientToScreen(wxPoint(x, y)), wxSize()); // this is not very useful if the menu was popped up because of the mouse // click but I think it is nice to do when it appears because of a key