From: Vadim Zeitlin Date: Sat, 7 Feb 2009 23:23:49 +0000 (+0000) Subject: removed wrong check from splice(it, list, first) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7b8b72b506722713f33cd35379f1395aceee786a removed wrong check from splice(it, list, first) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/list.h b/include/wx/list.h index c917e02a2f..3a261249ee 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -1047,10 +1047,11 @@ private: { splice(it, l, l.begin(), l.end() ); } \ void splice(const iterator& it, name& l, const iterator& first) \ { \ - iterator tmp = first; ++tmp; \ - if(it == first || it == tmp) return; \ - insert(it, *first); \ - l.erase(first); \ + if ( it != first ) \ + { \ + insert(it, *first); \ + l.erase(first); \ + } \ } \ void remove(const_reference v) \ { DeleteObject((const_base_reference)v); } \