summaryrefslogtreecommitdiff
path: root/chart2/source/tools/MediaDescriptorHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/tools/MediaDescriptorHelper.cxx')
-rw-r--r--chart2/source/tools/MediaDescriptorHelper.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/chart2/source/tools/MediaDescriptorHelper.cxx b/chart2/source/tools/MediaDescriptorHelper.cxx
index d3ff5d6ca2d9..73c326fdcb38 100644
--- a/chart2/source/tools/MediaDescriptorHelper.cxx
+++ b/chart2/source/tools/MediaDescriptorHelper.cxx
@@ -52,10 +52,8 @@ MediaDescriptorHelper::MediaDescriptorHelper( const uno::Sequence<
};
//read given rMediaDescriptor and store in internal structures:
- for( sal_Int32 i= rMediaDescriptor.getLength();i--;)
+ for( const beans::PropertyValue& rProp : rMediaDescriptor)
{
- const beans::PropertyValue& rProp = rMediaDescriptor[i];
-
if (rProp.Name == "AsTemplate")
{
addModelProp(rProp);