From c797aec4b941dcf288398dc1f132744ebe840817 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 Jun 2009 19:36:58 +0000 Subject: [PATCH] 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 --- include/wx/object.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/object.h b/include/wx/object.h index 8afcf85bf8..9ef6b83b33 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -404,10 +404,8 @@ inline T *wxCheckCast(const void *ptr, T * = NULL) class WXDLLIMPEXP_BASE wxObjectRefData { - friend class WXDLLIMPEXP_FWD_BASE wxObject; - public: - wxObjectRefData(int refCount = 1) : m_count(refCount) { } + wxObjectRefData() { m_count = 1; } int GetRefCount() const { return m_count; } @@ -422,6 +420,8 @@ protected: private: // our refcount: int m_count; + + friend class WXDLLIMPEXP_FWD_BASE wxObject; }; // ---------------------------------------------------------------------------- -- 2.45.2