]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vector.h
postpone the call to CopyAttributes() until the DC is fully initialized (closes ...
[wxWidgets.git] / include / wx / vector.h
index ab07ca0f4a8c1eb0f7c8f955e5db0fbca4d5f587..5375f9c5dfdbd161a5b676de2d9ee7b61a06771f 100644 (file)
@@ -169,19 +169,19 @@ public:
 
     wxVector() : m_size(0), m_capacity(0), m_values(NULL) {}
 
-    wxVector(size_type size)
+    wxVector(size_type p_size)
         : m_size(0), m_capacity(0), m_values(NULL)
     {
-        reserve(size);
-        for ( size_t n = 0; n < size; n++ )
+        reserve(p_size);
+        for ( size_t n = 0; n < p_size; n++ )
             push_back(value_type());
     }
 
-    wxVector(size_type size, const value_type& v)
+    wxVector(size_type p_size, const value_type& v)
         : m_size(0), m_capacity(0), m_values(NULL)
     {
-        reserve(size);
-        for ( size_t n = 0; n < size; n++ )
+        reserve(p_size);
+        for ( size_t n = 0; n < p_size; n++ )
             push_back(v);
     }