summaryrefslogtreecommitdiff
path: root/editeng/source/uno/unonrule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source/uno/unonrule.cxx')
-rw-r--r--editeng/source/uno/unonrule.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index 03c051ebaeed..57b68a0de1d3 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -270,10 +270,8 @@ Sequence<beans::PropertyValue> SvxUnoNumberingRules::getNumberingRuleByIndex(sal
void SvxUnoNumberingRules::setNumberingRuleByIndex(const Sequence<beans::PropertyValue >& rProperties, sal_Int32 nIndex)
{
SvxNumberFormat aFmt(maRule.GetLevel( static_cast<sal_uInt16>(nIndex) ));
- const beans::PropertyValue* pPropArray = rProperties.getConstArray();
- for(int i = 0; i < rProperties.getLength(); i++)
+ for(const beans::PropertyValue& rProp : rProperties)
{
- const beans::PropertyValue& rProp = pPropArray[i];
const OUString& rPropName = rProp.Name;
const Any& aVal = rProp.Value;