summaryrefslogtreecommitdiff
path: root/chart2/source/model/main/ChartModel_Persistence.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/model/main/ChartModel_Persistence.cxx')
-rw-r--r--chart2/source/model/main/ChartModel_Persistence.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx
index 21b61c89cdbc..b3dd7a7cfeeb 100644
--- a/chart2/source/model/main/ChartModel_Persistence.cxx
+++ b/chart2/source/model/main/ChartModel_Persistence.cxx
@@ -600,13 +600,13 @@ void ChartModel::impl_loadGraphics(
const uno::Sequence< OUString > aElementNames(
xGraphicsStorage->getElementNames() );
- for( int i = 0; i < aElementNames.getLength(); ++i )
+ for( OUString const & streamName : aElementNames )
{
- if( xGraphicsStorage->isStreamElement( aElementNames[ i ] ) )
+ if( xGraphicsStorage->isStreamElement( streamName ) )
{
uno::Reference< io::XStream > xElementStream(
xGraphicsStorage->openStreamElement(
- aElementNames[ i ],
+ streamName,
embed::ElementModes::READ ) );
if( xElementStream.is() )