diff options
Diffstat (limited to 'reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx')
-rw-r--r-- | reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx index a31fd64ee208..921962a3114b 100644 --- a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx +++ b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx @@ -272,13 +272,11 @@ void SAL_CALL ImportDocumentHandler::startElement(const OUString & _sName, const break; } } - beans::PropertyValue* pArgIter = m_aArguments.getArray(); - beans::PropertyValue* pArgEnd = pArgIter + m_aArguments.getLength(); - for(;pArgIter != pArgEnd;++pArgIter) + for(beans::PropertyValue & propVal : m_aArguments) { - if ( pArgIter->Name == "HasCategories" ) + if ( propVal.Name == "HasCategories" ) { - pArgIter->Value <<= bHasCategories; + propVal.Value <<= bHasCategories; break; } } |