diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 12:34:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:22:06 +0200 |
commit | 16d7e22d78cdeac149ee874f803292b3e2634e0a (patch) | |
tree | 8e7d06758af8a478833d840d7e144ef6c7322e74 /sc/source/core/data/dpobject.cxx | |
parent | aea932b58bbb2346fb5c1bc02bcfed3e43dedabc (diff) |
loplugin:sequenceloop in sc
Change-Id: I84e0b4784ddc66864b29e3b1f20c926aa17fc77f
Reviewed-on: https://gerrit.libreoffice.org/77523
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/dpobject.cxx')
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 4c7d02baa957..9cfc72391e46 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -262,10 +262,11 @@ static sheet::DataPilotFieldOrientation lcl_GetDataGetOrientation( const uno::Re sheet::DataPilotFieldOrientation nRet = sheet::DataPilotFieldOrientation_HIDDEN; if ( xSource.is() ) { - uno::Reference<container::XNameAccess> xDimNames = xSource->getDimensions(); - for (const OUString& rDimName: xDimNames->getElementNames()) + uno::Reference<container::XNameAccess> xDimNameAccess = xSource->getDimensions(); + const uno::Sequence<OUString> aDimNames = xDimNameAccess->getElementNames(); + for (const OUString& rDimName : aDimNames) { - uno::Reference<beans::XPropertySet> xDimProp(xDimNames->getByName(rDimName), + uno::Reference<beans::XPropertySet> xDimProp(xDimNameAccess->getByName(rDimName), uno::UNO_QUERY); if ( xDimProp.is() ) { |