From 490426ce322abde292deb3d6deb22d71f80f769e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Feb 2009 23:46:53 +0000 Subject: [PATCH] fix other insert() overloads to work when inserting at the end of the list, continuation of r56299 (see #10103) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/list.h b/include/wx/list.h index 9ee125c524..5d04a36a8a 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -1045,12 +1045,12 @@ private: void insert(const iterator& it, size_type n, const_reference v = value_type())\ { \ for(size_type i = 0; i < n; ++i) \ - Insert(it.m_node, (const_base_reference)v); \ + insert(it, v); \ } \ void insert(const iterator& it, const_iterator first, const const_iterator& last)\ { \ for(; first != last; ++first) \ - Insert(it.m_node, (const_base_reference)*first); \ + insert(it, *first); \ } \ iterator erase(const iterator& it) \ { \