From cb96678b3f875595e203f263e397afc33b433bb0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 28 Jun 2017 09:13:21 +0200 Subject: loplugin:oncevar in xmloff Change-Id: I0fbd37685a0006e1fbc98d2b432c2b84d13d6cc8 Reviewed-on: https://gerrit.libreoffice.org/39344 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/draw/animationexport.cxx | 3 +-- xmloff/source/draw/shapeexport.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'xmloff/source/draw') diff --git a/xmloff/source/draw/animationexport.cxx b/xmloff/source/draw/animationexport.cxx index 43b44a606f69..f3014ce41224 100644 --- a/xmloff/source/draw/animationexport.cxx +++ b/xmloff/source/draw/animationexport.cxx @@ -1143,8 +1143,7 @@ void AnimationsExporterImpl::exportAnimate( const Reference< XAnimate >& xAnimat } else { - OUString aStr( "invalid" ); - mrExport.AddAttribute( XML_NAMESPACE_SMIL, XML_ATTRIBUTENAME, aStr ); + mrExport.AddAttribute( XML_NAMESPACE_SMIL, XML_ATTRIBUTENAME, "invalid" ); } } diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index 0116c610a5c6..02e32dca12b6 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -240,9 +240,8 @@ uno::Reference< drawing::XShape > XMLShapeExport::checkForCustomShapeReplacement uno::Sequence< beans::PropertyValue > aPropValues( 2 ); aPropValues[ 0 ].Name = "CustomShape"; aPropValues[ 0 ].Value <<= xShape; - bool bForceGroupWithText = true; aPropValues[ 1 ].Name = "ForceGroupWithText"; - aPropValues[ 1 ].Value <<= bForceGroupWithText; + aPropValues[ 1 ].Value <<= true; aArgument[ 0 ] <<= aPropValues; uno::Reference< uno::XInterface > xInterface( xContext->getServiceManager()->createInstanceWithArgumentsAndContext(aEngine, aArgument, xContext) ); -- cgit