]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vector.h
Rearrange code to fix some problems
[wxWidgets.git] / include / wx / vector.h
index 207c0dd9cffd3a79c1487ad69194df9725608b74..8cb76a7ee66f9f04fe5b3272b31d1a99535111f8 100644 (file)
@@ -170,8 +170,8 @@ public:
             *(i - count) = *i;
 
         // erase items behind the new end of m_values:
-        for ( /* iterator */  i = end() - count; i < end(); ++i )
-            *i = value_type();
+        for ( iterator j = end() - count; j < end(); ++j )
+            *j = value_type();
 
         m_size -= count;