]> git.saurik.com Git - wxWidgets.git/commitdiff
fix typo in new wxVector(size_t, T) ctor
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Nov 2008 03:49:02 +0000 (03:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Nov 2008 03:49:02 +0000 (03:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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);
     }