X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12028905135250524409f1e7b9bfa9c55e5ce16b..b6e2eddeaf7e559589ce41ac41e88f9bd71c5a08:/include/wx/list.h?ds=sidebyside diff --git a/include/wx/list.h b/include/wx/list.h index e5eef865c2..ab36a45db2 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(v); \ } \ size_type size() const { return GetCount(); } \ size_type max_size() const { return INT_MAX; } \