summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/wrtw8sty.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2018-08-09 16:30:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-10 08:19:55 +0200
commitb268ef57e97e692644335afeae834205ecb73557 (patch)
tree872299ece84d84bb335ede04c6687b287a751208 /sw/source/filter/ww8/wrtw8sty.cxx
parentd063bea95848fd3b899b9809cb8e69eb61ded2fc (diff)
unnecessary null check before dynamic_cast, in sw
Change-Id: I4f3f3f8b8b7fdf57fe76ff9a24cd8c58e386392d Reviewed-on: https://gerrit.libreoffice.org/58770 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/wrtw8sty.cxx')
-rw-r--r--sw/source/filter/ww8/wrtw8sty.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx
index ef4b2c21d6f9..dc57e91f6c5f 100644
--- a/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/sw/source/filter/ww8/wrtw8sty.cxx
@@ -2306,7 +2306,7 @@ void WW8_WrPlcSubDoc::WriteGenericPlc( WW8Export& rWrt, sal_uInt8 nTTyp,
// is it a writer or sdr - textbox?
const SdrObject* pObj = static_cast<SdrObject const *>(aContent[ i ]);
sal_Int32 nCnt = 1;
- if (pObj && dynamic_cast< const SdrTextObj *>( pObj ) == nullptr )
+ if (dynamic_cast< const SdrTextObj *>( pObj ))
{
// find the "highest" SdrObject of this
const SwFrameFormat& rFormat = *::FindFrameFormat( pObj );