]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dynarray.h
fixed outdated filenames
[wxWidgets.git] / include / wx / dynarray.h
index 649e4b9797ebe3ed68127c2e62d7e18a1184c240..1a7bf28d2f5a0b00ca51595c21f978e81d869aeb 100644 (file)
@@ -94,6 +94,7 @@ public:                                                             \
   bool  IsEmpty() const { return m_nCount == 0; }                   \
   size_t  Count() const { return m_nCount; }                        \
                                                                     \
+  typedef T base_type;                                              \
 protected:                                                          \
   T& Item(size_t uiIndex) const                                     \
     { wxASSERT( uiIndex < m_nCount ); return m_pItems[uiIndex]; }   \
@@ -111,7 +112,6 @@ protected:                                                          \
   void Sort(CMPFUNC fnCompare);                                     \
                                                                     \
 private:                                                            \
-  typedef T base_type;                                              \
                                                                     \
   void    Grow();                                                   \
                                                                     \
@@ -463,11 +463,11 @@ private:                                                                 \
 // Some commonly used predefined base arrays
 // ----------------------------------------------------------------------------
 
-WX_DECLARE_EXPORTED_BASEARRAY(void *, wxBaseArrayPtrVoid);
-WX_DECLARE_EXPORTED_BASEARRAY(short,  wxBaseArrayShort);
-WX_DECLARE_EXPORTED_BASEARRAY(int,    wxBaseArrayInt);
-WX_DECLARE_EXPORTED_BASEARRAY(long,   wxBaseArrayLong);
-WX_DECLARE_EXPORTED_BASEARRAY(double, wxBaseArrayDouble);
+WX_DECLARE_EXPORTED_BASEARRAY(const void *, wxBaseArrayPtrVoid);
+WX_DECLARE_EXPORTED_BASEARRAY(short,        wxBaseArrayShort);
+WX_DECLARE_EXPORTED_BASEARRAY(int,          wxBaseArrayInt);
+WX_DECLARE_EXPORTED_BASEARRAY(long,         wxBaseArrayLong);
+WX_DECLARE_EXPORTED_BASEARRAY(double,       wxBaseArrayDouble);
 
 // ----------------------------------------------------------------------------
 // Convenience macros to define arrays from base arrays