diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 10:23:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 12:24:41 +0000 |
commit | 190737392868f9b47ac77fb7a01532c04856ae82 (patch) | |
tree | 4ad1ead027b806ab3e88563c4c6b8627f59d391a /sw | |
parent | coverity#1158059 Unchecked dynamic_cast (diff) | |
download | core-190737392868f9b47ac77fb7a01532c04856ae82.tar.gz core-190737392868f9b47ac77fb7a01532c04856ae82.zip |
coverity#1158062 Unchecked dynamic_cast
Change-Id: Ife7eae1cbf17c4fae4b147be2b93c1b02bdcab1e
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unofield.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx index b78f725c8ee1..b304197794f8 100644 --- a/sw/source/core/unocore/unofield.cxx +++ b/sw/source/core/unocore/unofield.cxx @@ -1966,7 +1966,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) { UnoActionContext aCont( m_pImpl->m_pDoc ); // insert copy of annotation at new text range - SwPostItField* pPostItField = dynamic_cast< SwPostItField* >(m_pImpl->m_pFmtFld->GetField()->CopyField()); + SwPostItField* pPostItField = static_cast< SwPostItField* >(m_pImpl->m_pFmtFld->GetField()->CopyField()); SwFmtFld aFmtFld( *pPostItField ); delete pPostItField; SwPaM aEnd( *aIntPam.End(), *aIntPam.End() ); |