From: Vadim Zeitlin Date: Sun, 30 Nov 2008 03:49:02 +0000 (+0000) Subject: fix typo in new wxVector(size_t, T) ctor X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8d00e34735e1c4e8ab546377758d17cbe14ad886 fix typo in new wxVector(size_t, T) ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/vector.h b/include/wx/vector.h index cf8e69c6e4..056202bcaa 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -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); }