diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-18 09:17:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-18 11:28:50 +0200 |
commit | 337a9a454c1bc95214111578d3f9c0622c55c509 (patch) | |
tree | 4eda99edf46e45ce804fcde98197cf0d96b7ac3d /chart2/source/model/filter/XMLFilter.cxx | |
parent | 6089755d197528d071906846c58a397add0876a5 (diff) |
use for-range on Sequence in chart2
Change-Id: Ief02e5d5284b0cbad26b04c0a282dccfee577b90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94398
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model/filter/XMLFilter.cxx')
-rw-r--r-- | chart2/source/model/filter/XMLFilter.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx index 3126eca15a1b..a8633cc2d3d3 100644 --- a/chart2/source/model/filter/XMLFilter.cxx +++ b/chart2/source/model/filter/XMLFilter.cxx @@ -335,17 +335,17 @@ ErrCode XMLFilter::impl_Import( uno::Reference<frame::XModel> const xModel(m_xTargetDoc, uno::UNO_QUERY); if( xModel.is() ) { - uno::Sequence< beans::PropertyValue > aModProps = xModel->getArgs(); - for( sal_Int32 nInd = 0; nInd < aModProps.getLength(); nInd++ ) + const uno::Sequence< beans::PropertyValue > aModProps = xModel->getArgs(); + for( beans::PropertyValue const & prop : aModProps ) { - if( aModProps[nInd].Name == "HierarchicalDocumentName" ) + if( prop.Name == "HierarchicalDocumentName" ) { // Actually this argument only has meaning for embedded documents - aModProps[nInd].Value >>= aHierarchName; + prop.Value >>= aHierarchName; } - else if( aModProps[nInd].Name == "DocumentBaseURL" ) + else if( prop.Name == "DocumentBaseURL" ) { - aModProps[nInd].Value >>= aBaseUri; + prop.Value >>= aBaseUri; } } } |