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:
Kevin B. McCarty
2015-05-09 18:59:01 +02:00
committed by Vadim Zeitlin
parent 5e376532f7
commit 9a44b109bf

View File

@@ -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 );