No real changes, just use wxNOT_FOUND instead of -1.
Replace -1 with more clear wxNOT_FOUND in wxGenericFileCtrl code. See #16685.
This commit is contained in:
committed by
Vadim Zeitlin
parent
5e376532f7
commit
9a44b109bf
@@ -1164,7 +1164,7 @@ bool wxGenericFileCtrl::SetFilename( const wxString& name )
|
||||
for ( ;; )
|
||||
{
|
||||
itemIndex = m_list->GetNextItem( itemIndex, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED );
|
||||
if ( itemIndex == -1 )
|
||||
if ( itemIndex == wxNOT_FOUND )
|
||||
break;
|
||||
|
||||
m_list->SetItemState( itemIndex, 0, wxLIST_STATE_SELECTED );
|
||||
|
Reference in New Issue
Block a user