Fix some wxMotif build warnings about deprecated methods.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-01-18 13:01:17 +00:00
parent 52c71b808f
commit fd304d989b
11 changed files with 63 additions and 46 deletions

View File

@@ -177,12 +177,12 @@ void wxFontRefData::Init(int pointSize,
wxFontRefData::~wxFontRefData()
{
wxNode* node = m_fonts.First();
wxList::Node* node = m_fonts.GetFirst();
while (node)
{
wxXFont* f = (wxXFont*) node->Data();
wxXFont* f = (wxXFont*) node->GetData();
delete f;
node = node->Next();
node = node->GetNext();
}
m_fonts.Clear();
}
@@ -500,13 +500,13 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const
int pointSize = (M_FONTDATA->m_pointSize * 10 * intScale) / 100;
// search existing fonts first
wxNode* node = M_FONTDATA->m_fonts.First();
wxList::Node* node = M_FONTDATA->m_fonts.GetFirst();
while (node)
{
wxXFont* f = (wxXFont*) node->Data();
wxXFont* f = (wxXFont*) node->GetData();
if ((!display || (f->m_display == display)) && (f->m_scale == intScale))
return f;
node = node->Next();
node = node->GetNext();
}
// not found, create a new one