Kaydet (Commit) 73fb311e authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#708439 Uninitialized pointer field

Change-Id: I63f1878c91dedc176f69ca593e19f8ff53ea1e6b
üst 6e4414b7
......@@ -1741,9 +1741,11 @@ SwTxtSlot::~SwTxtSlot()
}
}
SwFontSave::SwFontSave( const SwTxtSizeInfo &rInf, SwFont *pNew,
SwAttrIter* pItr )
: pFnt( pNew ? ((SwTxtSizeInfo&)rInf).GetFont() : 0 )
SwFontSave::SwFontSave(const SwTxtSizeInfo &rInf, SwFont *pNew,
SwAttrIter* pItr)
: pInf(NULL)
, pFnt(pNew ? ((SwTxtSizeInfo&)rInf).GetFont() : NULL)
, pIter(NULL)
{
if( pFnt )
{
......@@ -1772,8 +1774,6 @@ SwFontSave::SwFontSave( const SwTxtSizeInfo &rInf, SwFont *pNew,
pIter = pItr;
pIter->SetFnt( pNew );
}
else
pIter = NULL;
}
}
......
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