Kaydet (Commit) 7d31a252 authored tarafından Caolán McNamara's avatar Caolán McNamara

no need to continue, delete NULL is safe

üst 3ad00707
......@@ -68,20 +68,18 @@ XFFontFactory::~XFFontFactory()
Reset();
}
void XFFontFactory::Reset()
void XFFontFactory::Reset()
{
std::vector<XFFont*>::iterator it;
for( it = s_aFonts.begin(); it != s_aFonts.end(); ++it )
{
XFFont *pFont = (*it);
if( !pFont )
continue;
delete pFont;
}
s_aFonts.clear();
}
void XFFontFactory::AddFont(XFFont *pFont)
void XFFontFactory::AddFont(XFFont *pFont)
{
s_aFonts.push_back( pFont );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment