use wxID_ANY instead of -1

use wxNOT_FOUND instead of -1
This commit is contained in:
oltolm 2023-09-11 00:44:02 +02:00
parent 02616bf6be
commit 5175b599c6
7 changed files with 48 additions and 48 deletions

View file

@ -246,7 +246,7 @@ void BreakpointWindow::OnContextMenuClickSelected(wxCommandEvent& evt)
if (evt.GetId() == MENU_ID_DELETE_BP)
{
long sel = m_breakpoints->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
if (sel != -1)
if (sel != wxNOT_FOUND)
{
if (sel >= debuggerState.breakpoints.size())
return;