summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2018-08-09 16:30:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-10 08:21:55 +0200
commitd977e02ec6350115c39f03d588539e8bd423a1c3 (patch)
treebd624f4037b1d498cde385e56d48e383335c32ce /xmloff
parent76dd6bb9cc6dff0f59cdfce87b61210be6476965 (diff)
unnecessary null check before dynamic_cast, in various
Change-Id: I76ad0b3152030c29ee28f6a6cc80d0832188d02b Reviewed-on: https://gerrit.libreoffice.org/58774 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/ximpshap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index 137def939f91..c68be43fc9c9 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -620,7 +620,7 @@ void SdXMLShapeContext::SetStyle( bool bSupportsStyle /* = true */)
OUString aStyleName = maDrawStyleName;
uno::Reference< style::XStyle > xStyle;
- if( pStyle && dynamic_cast<const XMLShapeStyleContext*>( pStyle ) != nullptr)
+ if( dynamic_cast<const XMLShapeStyleContext*>( pStyle ) )
{
pDocStyle = const_cast<XMLShapeStyleContext*>(dynamic_cast<const XMLShapeStyleContext*>( pStyle ) );