made wxGridCellAttr dtor protected instead of private

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-04-13 23:55:52 +00:00
parent f597b41c5a
commit 338d1deba9

View File

@ -713,6 +713,14 @@ public:
void SetDefAttr(wxGridCellAttr* defAttr) { m_defGridAttr = defAttr; } void SetDefAttr(wxGridCellAttr* defAttr) { m_defGridAttr = defAttr; }
protected:
// the dtor is private because only DecRef() can delete us
virtual ~wxGridCellAttr()
{
wxSafeDecRef(m_renderer);
wxSafeDecRef(m_editor);
}
private: private:
enum wxAttrReadMode enum wxAttrReadMode
{ {
@ -731,12 +739,6 @@ private:
// the common part of all ctors // the common part of all ctors
void Init(wxGridCellAttr *attrDefault = NULL); void Init(wxGridCellAttr *attrDefault = NULL);
// the dtor is private because only DecRef() can delete us
~wxGridCellAttr()
{
wxSafeDecRef(m_renderer);
wxSafeDecRef(m_editor);
}
// the ref count - when it goes to 0, we die // the ref count - when it goes to 0, we die
size_t m_nRef; size_t m_nRef;