remove unnecessary refCount=1 parameter from wxObjectRefData ctor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-06-12 19:36:58 +00:00
parent bd035313c1
commit c797aec4b9

View File

@@ -404,10 +404,8 @@ inline T *wxCheckCast(const void *ptr, T * = NULL)
class WXDLLIMPEXP_BASE wxObjectRefData class WXDLLIMPEXP_BASE wxObjectRefData
{ {
friend class WXDLLIMPEXP_FWD_BASE wxObject;
public: public:
wxObjectRefData(int refCount = 1) : m_count(refCount) { } wxObjectRefData() { m_count = 1; }
int GetRefCount() const { return m_count; } int GetRefCount() const { return m_count; }
@@ -422,6 +420,8 @@ protected:
private: private:
// our refcount: // our refcount:
int m_count; int m_count;
friend class WXDLLIMPEXP_FWD_BASE wxObject;
}; };
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------