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

@@ -883,7 +883,7 @@ const wxString& wxPropertyGrid::DoubleToString(wxString& target,
bool isZero = true;
wxString::const_iterator i = target.begin() + 1;
for ( ; i != target.end(); i++ )
for ( ; i != target.end(); ++i )
{
if ( *i != wxS('0') && *i != wxS('.') && *i != wxS(',') )
{