]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vector.h
disabled wxMBConv(wxFONTENCODING_UTF7) test -- it doesn't work under Unix with iconv()
[wxWidgets.git] / include / wx / vector.h
index 38a8f906305aacea4e3f775810c064063a070d15..8ffc4a74f1389227550dc4dcc94a877438ab7c73 100644 (file)
@@ -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(
@@ -132,7 +132,7 @@ public:
 };
 
 #define WX_DECLARE_VECTORBASE(obj, cls)\
-private:\
+protected:\
     virtual void Free(void *o)\
     {\
         delete (obj *) o;\
@@ -143,7 +143,7 @@ private:\
     }\
 public:\
     cls() {}\
-    cls(const cls& c)\
+    cls(const cls& c) : wxVectorBase()\
     {\
         wxCHECK2(copy(c), return);\
     }\