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