From: Vadim Zeitlin Date: Sat, 7 Apr 2007 23:38:13 +0000 (+0000) Subject: don't allocate m_refData unnecessarily X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6a7d4d7190771e7acb15ccbc919e233bb6cb1038 don't allocate m_refData unnecessarily git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/iconbndl.cpp b/src/common/iconbndl.cpp index cedfb1bdee..f5b2b2cafe 100644 --- a/src/common/iconbndl.cpp +++ b/src/common/iconbndl.cpp @@ -64,13 +64,11 @@ protected: wxIconBundle::wxIconBundle() : wxGDIObject() { - m_refData = new wxIconBundleRefData; } wxIconBundle::wxIconBundle(const wxString& file, long type) : wxGDIObject() { - m_refData = new wxIconBundleRefData; AddIcon(file, type); } @@ -83,7 +81,6 @@ wxIconBundle::wxIconBundle(const wxIconBundle& icon) wxIconBundle::wxIconBundle(const wxIcon& icon) : wxGDIObject() { - m_refData = new wxIconBundleRefData; AddIcon(icon); } @@ -99,9 +96,7 @@ wxObjectRefData *wxIconBundle::CloneRefData(const wxObjectRefData *data) const void wxIconBundle::DeleteIcons() { - wxIconBundleRefData* ref = new wxIconBundleRefData(); UnRef(); - m_refData = ref; } bool wxIconBundle::IsOk() const