diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 19:12:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 21:05:57 +0100 |
commit | 5a1a10e8bf9d9125d981d71761f8f11d55e317d5 (patch) | |
tree | b86932412d2c03ae1894ae28f89a68043f2e4d3a /sw | |
parent | b11059614348d96ec99b90730164bd0b7af5c739 (diff) |
coverity#736855 Dereference before null check
Change-Id: I3074846fc5609f30fa1b545e07657c95347f640d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/rtfsdrexport.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfsdrexport.cxx b/sw/source/filter/ww8/rtfsdrexport.cxx index 34fa98e2ef04..44eafd5a07b8 100644 --- a/sw/source/filter/ww8/rtfsdrexport.cxx +++ b/sw/source/filter/ww8/rtfsdrexport.cxx @@ -516,7 +516,7 @@ sal_Int32 RtfSdrExport::StartShape() lcl_AppendSP(m_rAttrOutput.RunText(), "wzName", msfilter::rtfutil::OutString(m_pSdrObject->GetTitle(), m_rExport.eCurrentEncoding)); // now check if we have some text - const SdrTextObj* pTxtObj = PTR_CAST(SdrTextObj, m_pSdrObject); + const SdrTextObj* pTxtObj = dynamic_cast<const SdrTextObj*>(m_pSdrObject); if (pTxtObj) { const OutlinerParaObject* pParaObj = 0; |