From bc2b283959d4fa76aa0b9f6bea0babbd5a296ddd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 28 Mar 2022 16:46:03 +0200 Subject: [PATCH] -Werror,-Wunused-but-set-variable ...since 9e87a00e11486a2be64b0dc2799e3efca4b000cc "oox: replace PUT_PROP macro with comphelper::makePropertyValue() calls" Change-Id: Ic90e6e579e0d546454d2acd8c3fb5b5ac50f9f5a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132223 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- oox/source/drawingml/shape.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 9d05acb34faf..cc988699292e 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -1572,7 +1572,6 @@ Reference< XShape > const & Shape::createAndInsert( if (!aEffectProperties.m_Effects.empty()) { std::vector aEffects; - sal_uInt32 i = 0; for (auto const& it : aEffectProperties.m_Effects) { PropertyValue aEffect = it->getEffect(); @@ -1598,7 +1597,6 @@ Reference< XShape > const & Shape::createAndInsert( aEffectsGrabBag.push_back(comphelper::makePropertyValue("SchemeClrTransformations", aColor.getTransformations())); } aEffects.push_back(comphelper::makePropertyValue(aEffect.Name, comphelper::containerToSequence(aEffectsGrabBag))); - ++i; } } putPropertyToGrabBag("EffectProperties", uno::Any(comphelper::containerToSequence(aEffects)));