From: Robert Roebling Date: Sun, 14 Jun 2009 14:11:07 +0000 (+0000) Subject: Make wxDataViewModel derive from wxRefCounter X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4e83d3ad627c4a7fb96fb98ff947c1365129a7c?ds=sidebyside Make wxDataViewModel derive from wxRefCounter git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dataview.h b/include/wx/dataview.h index aa2ec3025b..63e2f6460b 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -161,7 +161,7 @@ private: WX_DECLARE_LIST_WITH_DECL(wxDataViewModelNotifier, wxDataViewModelNotifiers, class WXDLLIMPEXP_ADV); -class WXDLLIMPEXP_ADV wxDataViewModel: public wxObjectRefData +class WXDLLIMPEXP_ADV wxDataViewModel: public wxRefCounter { public: wxDataViewModel(); diff --git a/interface/wx/dataview.h b/interface/wx/dataview.h index 79db099c1f..fcdd636a19 100644 --- a/interface/wx/dataview.h +++ b/interface/wx/dataview.h @@ -61,7 +61,7 @@ wxDataViewIndexListModel, wxDataViewVirtualListModel, wxDataViewTreeStore, wxDataViewListStore. - Note that wxDataViewModel is reference counted, derives from wxObjectRefData + Note that wxDataViewModel is reference counted, derives from wxRefCounter and cannot be deleted directly as it can be shared by several wxDataViewCtrls. This implies that you need to decrease the reference count after associating the model with a control like this: @@ -78,7 +78,7 @@ @library{wxadv} @category{dvc} */ -class wxDataViewModel : public wxObjectRefData +class wxDataViewModel : public wxRefCounter { public: /**