coverity#1158074 Unchecked dynamic_cast

Change-Id: I29e9a98a862b2d6b5263606111c7be75e2160261
This commit is contained in:
Caolán McNamara
2014-02-07 10:24:18 +00:00
parent 1907373928
commit 7ca55ef5cf

View File

@@ -68,7 +68,7 @@ SwFmtFld::SwFmtFld( const SwField &rFld )
{
// input field in-place editing
SetWhich( RES_TXTATR_INPUTFIELD );
dynamic_cast<SwInputField*>(GetField())->SetFmtFld( *this );
static_cast<SwInputField*>(GetField())->SetFmtFld( *this );
}
else if ( GetField()->GetTyp()->Which() == RES_POSTITFLD )
{