summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-07 10:23:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-07 12:24:41 +0000
commit190737392868f9b47ac77fb7a01532c04856ae82 (patch)
tree4ad1ead027b806ab3e88563c4c6b8627f59d391a /sw/source
parentcee79013092ef593ff5ae8cce0d4174f7ac3512c (diff)
coverity#1158062 Unchecked dynamic_cast
Change-Id: Ife7eae1cbf17c4fae4b147be2b93c1b02bdcab1e
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/unocore/unofield.cxx2
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() );