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:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user