mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 13:31:18 +12:00
UI: Use wxID_ANY and wxNOT_FOUND instead of hardcoding -1 (#1581)
This commit is contained in:
parent
02616bf6be
commit
152b790242
7 changed files with 48 additions and 48 deletions
|
@ -393,7 +393,7 @@ void MemorySearcherTool::OnResultListClick(wxMouseEvent& event)
|
|||
while (true)
|
||||
{
|
||||
selectedIndex = m_listResults->GetNextItem(selectedIndex, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
|
||||
if (selectedIndex == -1)
|
||||
if (selectedIndex == wxNOT_FOUND)
|
||||
break;
|
||||
|
||||
long address = m_listResults->GetItemData(selectedIndex);
|
||||
|
@ -684,7 +684,7 @@ void MemorySearcherTool::OnPopupClick(wxCommandEvent& event)
|
|||
if (event.GetId() == LIST_ENTRY_REMOVE)
|
||||
{
|
||||
const int row = m_listEntryTable->GetSelectedRow();
|
||||
if (row == -1)
|
||||
if (row == wxNOT_FOUND)
|
||||
return;
|
||||
|
||||
m_listEntryTable->DeleteItem(row);
|
||||
|
@ -700,7 +700,7 @@ void MemorySearcherTool::OnItemEdited(wxDataViewEvent& event)
|
|||
else if (column == 3)
|
||||
{
|
||||
auto row = m_listEntryTable->GetSelectedRow();
|
||||
if (row == -1)
|
||||
if (row == wxNOT_FOUND)
|
||||
return;
|
||||
|
||||
auto addressText = std::string(m_listEntryTable->GetTextValue(row, 1).mbc_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue