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@12527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-11-20 18:40:03 +00:00
parent 636d266b89
commit 7ecb8b06ad
18 changed files with 122 additions and 250 deletions

View File

@@ -370,8 +370,6 @@ wxString wxNativeFontInfo::ToString() const
void wxFont::Init()
{
if ( wxTheFontList )
wxTheFontList->Append(this);
}
bool wxFont::Create(const wxNativeFontInfo& info, WXHFONT hFont)
@@ -420,8 +418,6 @@ bool wxFont::Create(int pointSize,
wxFont::~wxFont()
{
if ( wxTheFontList )
wxTheFontList->DeleteObject(this);
}
// ----------------------------------------------------------------------------