From d977e02ec6350115c39f03d588539e8bd423a1c3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 9 Aug 2018 16:30:57 +0200 Subject: 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 --- xmloff/source/draw/ximpshap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff/source') 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( pStyle ) != nullptr) + if( dynamic_cast( pStyle ) ) { pDocStyle = const_cast(dynamic_cast( pStyle ) ); -- cgit