From 7f48fa8152bd3320af7276d811b752c5a762dcce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 1 Nov 2018 13:14:09 +0200 Subject: loplugin:collapseif in tools..xmloff Change-Id: Iea1227a9f13a0a618d9bb6b0bbedaa5ce8d1a4f5 Reviewed-on: https://gerrit.libreoffice.org/62732 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/draw/animationexport.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'xmloff/source/draw/animationexport.cxx') diff --git a/xmloff/source/draw/animationexport.cxx b/xmloff/source/draw/animationexport.cxx index 72938424411a..de66a89dcd8d 100644 --- a/xmloff/source/draw/animationexport.cxx +++ b/xmloff/source/draw/animationexport.cxx @@ -881,13 +881,10 @@ void AnimationsExporterImpl::exportNode( const Reference< XAnimationNode >& xNod } aTemp = xNode->getEndSync(); - if( aTemp.hasValue() ) + if( aTemp.hasValue() && (aTemp >>= nTemp) ) { - if( aTemp >>= nTemp ) - { - SvXMLUnitConverter::convertEnum( sTmp, nTemp, aAnimations_EnumMap_Endsync ); - mrExport.AddAttribute( XML_NAMESPACE_SMIL, XML_ENDSYNC, sTmp.makeStringAndClear() ); - } + SvXMLUnitConverter::convertEnum( sTmp, nTemp, aAnimations_EnumMap_Endsync ); + mrExport.AddAttribute( XML_NAMESPACE_SMIL, XML_ENDSYNC, sTmp.makeStringAndClear() ); } sal_Int16 nContainerNodeType = EffectNodeType::DEFAULT; -- cgit