diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 10:57:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 11:32:55 +0100 |
commit | bde63c71fcf593ad5830f15ba0a913c5910972a6 (patch) | |
tree | 8ba0b696e25a5eaeef38a3d30da52d0a5784e92b /sw | |
parent | ff38a90357a366298e5eb49e0cd4bd20fbd76c73 (diff) |
coverity#735905 Unchecked dynamic_cast
Change-Id: I419ece67081531d42e6dd49ab8c7d71d5a9b6182
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/frmedt/fefly1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx index a20dceb973e2..3ca656c41551 100644 --- a/sw/source/core/frmedt/fefly1.cxx +++ b/sw/source/core/frmedt/fefly1.cxx @@ -1962,7 +1962,7 @@ OUString SwFEShell::GetObjDescription() const const SwFrmFmt* pFmt = FindFrmFmt( pObj ); if ( pFmt->Which() == RES_FLYFRMFMT ) { - return dynamic_cast<const SwFlyFrmFmt*>(pFmt)->GetObjDescription(); + return dynamic_cast<const SwFlyFrmFmt&>(*pFmt).GetObjDescription(); } return pObj->GetDescription(); } |