diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 09:05:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 12:29:46 +0200 |
commit | 639511d7194726b188a2ecae9b3489a250532d03 (patch) | |
tree | af8195623e940c171934b9bbbe16acbc38e0d378 /sd/source | |
parent | cf46500243c51071227e08c5067041e414180ebc (diff) |
use for-range on Sequence in i18npool..sd
Change-Id: I19eba57bc6058c317473d0746f06699a09ba2830
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94608
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/framework/configuration/ConfigurationTracer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationTracer.cxx b/sd/source/ui/framework/configuration/ConfigurationTracer.cxx index 4fb4a82165cb..11533fde3e2a 100644 --- a/sd/source/ui/framework/configuration/ConfigurationTracer.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationTracer.cxx @@ -54,16 +54,16 @@ void ConfigurationTracer::TraceBoundResources ( const Reference<XResourceId>& rxResourceId, const int nIndentation) { - Sequence<Reference<XResourceId> > aResourceList ( + const Sequence<Reference<XResourceId> > aResourceList ( rxConfiguration->getResources(rxResourceId, OUString(), AnchorBindingMode_DIRECT)); const OUString sIndentation (" "); - for (sal_Int32 nIndex=0; nIndex<aResourceList.getLength(); ++nIndex) + for (Reference<XResourceId> const & resourceId : aResourceList) { - OUString sLine (aResourceList[nIndex]->getResourceURL()); + OUString sLine (resourceId->getResourceURL()); for (int i=0; i<nIndentation; ++i) sLine = sIndentation + sLine; SAL_INFO("sd.ui", "" << sLine); - TraceBoundResources(rxConfiguration, aResourceList[nIndex], nIndentation+1); + TraceBoundResources(rxConfiguration, resourceId, nIndentation+1); } } #endif |