]> git.saurik.com Git - wxWidgets.git/commitdiff
inserted casts allowing to have arrays of function pointers -- this is wrong but...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Feb 2003 17:46:05 +0000 (17:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Feb 2003 17:46:05 +0000 (17:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dynarray.h

index 6ff3d60383d3e8ace8cb25d40512a0f18fb3301b..bafebee02f0c6951dab3ef5f3acd98db3a0e0f58 100644 (file)
@@ -168,12 +168,12 @@ public:                                                               \
     { return (T&)(base::Item(Count() - 1)); }                         \
                                                                       \
   int Index(T Item, bool bFromEnd = FALSE) const                      \
-    { return base::Index(Item, bFromEnd); }                           \
+    { return base::Index((base_type)Item, bFromEnd); }                \
                                                                       \
   void Add(T Item, size_t nInsert = 1)                                \
-    { base::Add(Item, nInsert); }                                     \
+    { base::Add((base_type)Item, nInsert); }                          \
   void Insert(T Item, size_t uiIndex, size_t nInsert = 1)             \
-    { base::Insert(Item, uiIndex, nInsert) ; }                        \
+    { base::Insert((base_type)Item, uiIndex, nInsert) ; }             \
                                                                       \
   void RemoveAt(size_t uiIndex, size_t nRemove = 1)                   \
     { base::RemoveAt(uiIndex, nRemove); }                             \