]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vector.h
deprecate wxStringEq
[wxWidgets.git] / include / wx / vector.h
index cf8e69c6e4e46c78dbd4114cfc62919f056acb92..056202bcaa32840c0c4090c227a44d3d910f5bfa 100644 (file)
@@ -180,7 +180,7 @@ public:
     wxVector(size_type size, const value_type& v)
         : m_size(0), m_capacity(0), m_values(NULL) 
     {
-        reserve(n);
+        reserve(size);
         for ( size_t n = 0; n < size; n++ )
             push_back(v);
     }