Use pre-increment operator to increment iterator in the loop.

When the return value is ignored, the ++it is never less efficient than the it++.
This commit is contained in:
Artur Wieczorek
2015-06-07 23:05:42 +02:00
parent 06013ea36f
commit 1d9c1b35fd
3 changed files with 4 additions and 4 deletions

View File

@@ -908,7 +908,7 @@ bool wxPropertyGrid::AddToSelectionFromInputEvent( wxPGProperty* prop,
for ( it = GetIterator(wxPG_ITERATE_VISIBLE, startFrom);
!it.AtEnd();
it++ )
++it )
{
wxPGProperty* p = *it;
@@ -5602,7 +5602,7 @@ void wxPropertyGrid::ClearActionTriggers( int action )
for ( it = m_actionTriggers.begin();
it != m_actionTriggers.end();
it++ )
++it )
{
if ( it->second == action )
{