From: Julian Smart Date: Tue, 19 Aug 2003 12:37:36 +0000 (+0000) Subject: Fix to remove CW/Mac warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5751dd32c77946719c80a7e9e1a882a92f3eed51 Fix to remove CW/Mac warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/list.h b/include/wx/list.h index e5eef865c2..c17823a71b 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -859,10 +859,10 @@ private: { return const_reverse_iterator(NULL, GetFirst()); } \ void resize(size_type n, value_type v = value_type()) \ { \ - if(n < size()) \ - for(; n < size(); pop_back()); \ - else if(n > size()) \ - for(; n > size(); push_back(v)); \ + while (n < size()) \ + pop_back(); \ + while (n > size()) \ + push_back(); \ } \ size_type size() const { return GetCount(); } \ size_type max_size() const { return INT_MAX; } \