Use pre-increment/decrement operators to move iterator in the loop (propgrid sample).

When the return value is ignored, the ++it/--it is never less efficient than the it++/it--.
This commit is contained in:
Artur Wieczorek
2015-06-26 18:15:45 +02:00
parent 7c0b52671d
commit 4228e3210f
2 changed files with 2 additions and 2 deletions

View File

@@ -2406,7 +2406,7 @@ void FormMain::OnIterate3Click( wxCommandEvent& WXUNUSED(event) )
for ( it = m_pPropGridManager->GetCurrentPage()->
GetIterator( wxPG_ITERATE_DEFAULT, wxBOTTOM );
!it.AtEnd();
it-- )
--it )
{
wxPGProperty* p = *it;