X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f32f5856595dcf584e7a4f2c6617268eabc7520..2c01d33555e3125057f4575ca7d0d2aba93f421f:/include/wx/vector.h diff --git a/include/wx/vector.h b/include/wx/vector.h index 38a8f90630..57543bd0c6 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -48,7 +48,7 @@ protected: const void *GetItem(size_type idx) const { - wxASSERT(idx >= 0 && idx < m_size); + wxASSERT(idx < m_size); return m_objects[idx]; } @@ -61,7 +61,7 @@ protected: void RemoveAt(size_type idx) { - wxASSERT(idx >= 0 && idx < m_size); + wxASSERT(idx < m_size); Free(m_objects[idx]); if (idx < m_size - 1) memcpy( @@ -143,7 +143,7 @@ private:\ }\ public:\ cls() {}\ - cls(const cls& c)\ + cls(const cls& c) : wxVectorBase()\ {\ wxCHECK2(copy(c), return);\ }\