From e38ed919ba0ec0c758ddfde02b4bc8f500b7986f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 16 Feb 2003 17:46:05 +0000 Subject: [PATCH] inserted casts allowing to have arrays of function pointers -- this is wrong but works on most platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dynarray.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/dynarray.h b/include/wx/dynarray.h index 6ff3d60383..bafebee02f 100644 --- a/include/wx/dynarray.h +++ b/include/wx/dynarray.h @@ -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); } \ -- 2.45.2