]> git.saurik.com Git - wxWidgets.git/commitdiff
don't allocate m_refData unnecessarily
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Apr 2007 23:38:13 +0000 (23:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Apr 2007 23:38:13 +0000 (23:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/iconbndl.cpp

index cedfb1bdee1eb18de6bdbd380df5cd07ae71d642..f5b2b2cafe1e3b2b37deb8e55bdd1eec492b21eb 100644 (file)
@@ -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