-Werror,-Wunused-but-set-variable

...since 9e87a00e11 "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 <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2022-03-28 16:46:03 +02:00
parent f41d048172
commit bc2b283959

View file

@ -1572,7 +1572,6 @@ Reference< XShape > const & Shape::createAndInsert(
if (!aEffectProperties.m_Effects.empty())
{
std::vector<beans::PropertyValue> 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)));