From 5751dd32c77946719c80a7e9e1a882a92f3eed51 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 19 Aug 2003 12:37:36 +0000 Subject: [PATCH] Fix to remove CW/Mac warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/list.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } \ -- 2.50.0