coverity#1267644 Logically dead code

Change-Id: Ida19552cd9163507bea36a189811fdf8c152cae6
This commit is contained in:
Caolán McNamara
2015-02-06 12:52:02 +00:00
parent 03f52fb64c
commit 9e90c4d72e

View File

@@ -694,12 +694,10 @@ void SmMathConfig::SaveFontFormatList()
OUString aDelim( "/" );
for (size_t i = 0; i < nCount; ++i)
{
OUString aFntFmtId( rFntFmtList.GetFontFormatId( i ) );
const SmFontFormat *pFntFmt = rFntFmtList.GetFontFormat( aFntFmtId );
OUString aFntFmtId(rFntFmtList.GetFontFormatId(i));
const SmFontFormat *pFntFmt = rFntFmtList.GetFontFormat(i);
assert(pFntFmt);
if (!pFntFmt)
continue;
const SmFontFormat aFntFmt( *pFntFmt );
const SmFontFormat aFntFmt(*pFntFmt);
OUString aNodeNameDelim( FONT_FORMAT_LIST );
aNodeNameDelim += aDelim;