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

coverity#1169821 Dereference after null check

Change-Id: Ia239505f1fd58ffd371be1d3a49fcb008982bcf5
üst d9b5127b
......@@ -36,17 +36,18 @@ class SwTxtPainter : public SwTxtCursor
long nAdjustBaseLine = 0 );
protected:
void CtorInitTxtPainter( SwTxtFrm *pFrm, SwTxtPaintInfo *pInf );
inline SwTxtPainter(SwTxtNode* pTxtNode)
SwTxtPainter(SwTxtNode* pTxtNode)
: SwTxtCursor(pTxtNode)
, bPaintDrop(false)
{ }
{
}
public:
inline SwTxtPainter( SwTxtFrm *pTxtFrm, SwTxtPaintInfo *pTxtPaintInf )
: SwTxtCursor( pTxtFrm != NULL ? pTxtFrm->GetTxtNode() : NULL)
{
CtorInitTxtPainter( pTxtFrm, pTxtPaintInf );
}
SwTxtPainter(SwTxtFrm *pTxtFrm, SwTxtPaintInfo *pTxtPaintInf)
: SwTxtCursor(pTxtFrm->GetTxtNode())
{
CtorInitTxtPainter( pTxtFrm, pTxtPaintInf );
}
void DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
const bool bUnderSz );
void PaintDropPortion();
......
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