From cd722937d877fea4e613e27da0e16239ce2981fb Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 22 Aug 2007 13:14:57 +0000 Subject: [PATCH] minor change git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dataview.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/include/wx/dataview.h b/include/wx/dataview.h index 76b98fcf14..df1aff2852 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -25,7 +25,7 @@ #if defined(__WXGTK20__) // for testing - #define wxUSE_GENERICDATAVIEWCTRL 1 + // #define wxUSE_GENERICDATAVIEWCTRL 1 #elif defined(__WXMAC__) #else #define wxUSE_GENERICDATAVIEWCTRL 1 @@ -82,6 +82,8 @@ private: bool operator == (const wxDataViewItem &left, const wxDataViewItem &right); +WX_DEFINE_ARRAY(wxDataViewItem, wxDataViewItemArray); + // --------------------------------------------------------- // wxDataViewModelNotifier // --------------------------------------------------------- @@ -166,9 +168,6 @@ protected: // wxDataViewIndexListModel // --------------------------------------------------------- -// use hash map later -WX_DEFINE_ARRAY_PTR( void*, wxDataViewItemHash ); - class wxDataViewIndexListModel: public wxDataViewModel { public: @@ -212,7 +211,7 @@ public: virtual wxDataViewItem GetNextSibling( const wxDataViewItem &item ) const; private: - wxDataViewItemHash m_hash; + wxDataViewItemArray m_hash; unsigned int m_lastIndex; }; @@ -397,8 +396,6 @@ protected: // wxDataViewCtrlBase // --------------------------------------------------------- -WX_DEFINE_ARRAY(wxDataViewItem, wxDataViewItemArray); - #define wxDV_SINGLE 0x0000 // for convenience #define wxDV_MULTIPLE 0x0001 // can select multiple items -- 2.47.2