don't use wxTheXXXList in wxXXX ctor/dtor, only objects explicitly created

with FindOrCreateXXX() are managed by the lists


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-12-01 13:34:50 +00:00
parent 4f716609c9
commit 2edd0e7c66
4 changed files with 0 additions and 50 deletions

View File

@@ -121,8 +121,6 @@ void wxFontRefData::MacFindFont()
void wxFont::Init()
{
if ( wxTheFontList )
wxTheFontList->Append(this);
}
bool wxFont::Create(const wxNativeFontInfo& info)
@@ -157,8 +155,6 @@ bool wxFont::Create(int pointSize,
wxFont::~wxFont()
{
if (wxTheFontList)
wxTheFontList->DeleteObject(this);
}
bool wxFont::RealizeResource()