reuse wxObjectRefData for various ref-counted classes (closes #10886)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -407,7 +407,7 @@ class WXDLLIMPEXP_BASE wxObjectRefData
|
||||
friend class WXDLLIMPEXP_FWD_BASE wxObject;
|
||||
|
||||
public:
|
||||
wxObjectRefData() : m_count(1) { }
|
||||
wxObjectRefData(int refCount = 1) : m_count(refCount) { }
|
||||
|
||||
int GetRefCount() const { return m_count; }
|
||||
|
||||
|
Reference in New Issue
Block a user