Use postfix operator when iterating over containers

No real changes, just avoid a micro-pessimization.

See https://github.com/wxWidgets/wxWidgets/pull/652
This commit is contained in:
VZ
2017-12-26 04:25:44 +01:00
committed by GitHub

View File

@@ -102,7 +102,7 @@ public:
return it->second; return it->second;
// Finally, attempt to find a compatible type // Finally, attempt to find a compatible type
for ( it = anyToVariant.begin(); it != anyToVariant.end(); it++ ) for ( it = anyToVariant.begin(); it != anyToVariant.end(); ++it )
{ {
if ( type->IsSameType(it->first) ) if ( type->IsSameType(it->first) )
{ {