From 4f1cf94b942cbf62616a8a1a066b1a13ff6af792 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 20 Aug 2007 13:51:15 +0000 Subject: [PATCH] Make wxDataViewItemArray more efficient git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dataview.h | 3 ++- src/common/datavcmn.cpp | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/wx/dataview.h b/include/wx/dataview.h index 6a8ede95ba..051447a2f1 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -74,6 +74,7 @@ public: { m_id = item.m_id; } bool IsOk() const { return m_id != NULL; } void* GetID() const { return m_id; } + operator const void* () const { return m_id; } private: void* m_id; @@ -396,7 +397,7 @@ protected: // wxDataViewCtrlBase // --------------------------------------------------------- -WX_DECLARE_OBJARRAY(wxDataViewItem, wxDataViewItemArray); +WX_DEFINE_ARRAY(wxDataViewItem, wxDataViewItemArray); #define wxDV_SINGLE 0x0000 // for convenience #define wxDV_MULTIPLE 0x0001 // can select multiple items diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index cfa0149e6a..1572f8c75f 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -533,9 +533,6 @@ void wxDataViewColumnBase::SetFlags(int flags) // wxDataViewCtrlBase // --------------------------------------------------------- -#include "wx/arrimpl.cpp" -WX_DEFINE_OBJARRAY(wxDataViewItemArray); - IMPLEMENT_ABSTRACT_CLASS(wxDataViewCtrlBase, wxControl) wxDataViewCtrlBase::wxDataViewCtrlBase()