diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-10-03 22:22:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-10-04 09:00:06 +0100 |
commit | 7d31a252b12b619a91ac8711b64d0968e055e1fb (patch) | |
tree | a15cdd0c41686d2857c642c35b666d1e6c06291c /lotuswordpro | |
parent | 3ad0070790b86c099ac9ccf8013ed7c619cf0a3c (diff) |
no need to continue, delete NULL is safe
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xffontfactory.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xffontfactory.cxx b/lotuswordpro/source/filter/xfilter/xffontfactory.cxx index 72b63870d63e..82be04c71eb1 100644 --- a/lotuswordpro/source/filter/xfilter/xffontfactory.cxx +++ b/lotuswordpro/source/filter/xfilter/xffontfactory.cxx @@ -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 ); } |