]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vector.h
more work on wxDC reorganizing
[wxWidgets.git] / include / wx / vector.h
index 74252da28e0a7c071b871447c9edb3ccf4fbce16..8cb76a7ee66f9f04fe5b3272b31d1a99535111f8 100644 (file)
@@ -21,6 +21,8 @@
 
 #else // !wxUSE_STL
 
+#include "wx/utils.h"
+
 template<typename T>
 class wxVector
 {
@@ -168,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;
 
@@ -181,8 +183,9 @@ public:
 #endif // WXWIN_COMPATIBILITY_2_8
 
 private:
-    static const size_type ALLOC_INITIAL_SIZE = 16;
-    static const size_type ALLOC_MAX_SIZE = 4096;
+    // VC6 can't compile static const int members
+    enum { ALLOC_INITIAL_SIZE = 16 };
+    enum { ALLOC_MAX_SIZE = 4096 };
 
     void Copy(const wxVector& vb)
     {