X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0516de2cdb33937bab49c7b381cecd25c5e50ef2..ca7db61eace93e5b8c710113dbab743085a155fa:/include/wx/vector.h diff --git a/include/wx/vector.h b/include/wx/vector.h index 74252da28e..8cb76a7ee6 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -21,6 +21,8 @@ #else // !wxUSE_STL +#include "wx/utils.h" + template class wxVector { @@ -168,8 +170,8 @@ public: *(i - count) = *i; // erase items behind the new end of m_values: - for ( iterator i = end() - count; i < end(); ++i ) - *i = value_type(); + for ( iterator j = end() - count; j < end(); ++j ) + *j = value_type(); m_size -= count; @@ -181,8 +183,9 @@ public: #endif // WXWIN_COMPATIBILITY_2_8 private: - static const size_type ALLOC_INITIAL_SIZE = 16; - static const size_type ALLOC_MAX_SIZE = 4096; + // VC6 can't compile static const int members + enum { ALLOC_INITIAL_SIZE = 16 }; + enum { ALLOC_MAX_SIZE = 4096 }; void Copy(const wxVector& vb) {