From 8d00e34735e1c4e8ab546377758d17cbe14ad886 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Nov 2008 03:49:02 +0000 Subject: [PATCH] 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 --- include/wx/vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.45.2