diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 08:22:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 14:46:53 +0200 |
commit | 04112bce506c60254cb1cb8536f942c8adb5c7d6 (patch) | |
tree | 43b63df6f5b5eeb89abe70094b415ddfed152a9a /filter/source/config/cache/filtercache.cxx | |
parent | loplugin:sequentialassign in editeng..extensions (diff) | |
download | core-04112bce506c60254cb1cb8536f942c8adb5c7d6.tar.gz core-04112bce506c60254cb1cb8536f942c8adb5c7d6.zip |
loplugin:sequentialassign in filter..fpicker
Change-Id: I4ba0e1e982897bd570612f6cda8ba1e6a9fa5dbd
Reviewed-on: https://gerrit.libreoffice.org/70700
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/config/cache/filtercache.cxx')
-rw-r--r-- | filter/source/config/cache/filtercache.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx index f717f109a26f..29c717491588 100644 --- a/filter/source/config/cache/filtercache.cxx +++ b/filter/source/config/cache/filtercache.cxx @@ -549,8 +549,7 @@ void FilterCache::addStatePropsToItem( EItemType eType, void FilterCache::removeStatePropsFromItem(CacheItem& rItem) { - CacheItem::iterator pIt; - pIt = rItem.find(PROPNAME_FINALIZED); + CacheItem::iterator pIt = rItem.find(PROPNAME_FINALIZED); if (pIt != rItem.end()) rItem.erase(pIt); pIt = rItem.find(PROPNAME_MANDATORY); @@ -1575,8 +1574,7 @@ CacheItem FilterCache::impl_loadItem(const css::uno::Reference< css::container:: { css::uno::Reference< css::beans::XMultiPropertySet > xPropSet( xItem, css::uno::UNO_QUERY_THROW); - css::uno::Sequence< css::uno::Any > aValues; - aValues = xPropSet->getPropertyValues(rNames); + css::uno::Sequence< css::uno::Any > aValues = xPropSet->getPropertyValues(rNames); for (sal_Int32 i = 0; i < aValues.getLength(); i++) aItem[rNames[i]] = aValues[i]; @@ -1600,8 +1598,7 @@ CacheItem FilterCache::impl_loadItem(const css::uno::Reference< css::container:: { css::uno::Reference< css::beans::XMultiPropertySet > xPropSet( xItem, css::uno::UNO_QUERY_THROW); - css::uno::Sequence< css::uno::Any > aValues; - aValues = xPropSet->getPropertyValues(rNames); + css::uno::Sequence< css::uno::Any > aValues = xPropSet->getPropertyValues(rNames); for (sal_Int32 i = 0; i < rNames.getLength(); i++) { |