summaryrefslogtreecommitdiff
path: root/xmlscript/source/xml_helper/xml_element.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript/source/xml_helper/xml_element.cxx')
-rw-r--r--xmlscript/source/xml_helper/xml_element.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlscript/source/xml_helper/xml_element.cxx b/xmlscript/source/xml_helper/xml_element.cxx
index d758b0fa9662..1347ac84d582 100644
--- a/xmlscript/source/xml_helper/xml_element.cxx
+++ b/xmlscript/source/xml_helper/xml_element.cxx
@@ -44,9 +44,9 @@ Reference< xml::sax::XAttributeList > XMLElement::getSubElement( sal_Int32 nInde
void XMLElement::dumpSubElements( Reference< xml::sax::XDocumentHandler > const & xOut )
{
- for ( size_t nPos = 0; nPos < _subElems.size(); ++nPos )
+ for (Reference<XAttributeList> & _subElem : _subElems)
{
- XMLElement * pElem = static_cast< XMLElement * >( _subElems[ nPos ].get() );
+ XMLElement * pElem = static_cast< XMLElement * >( _subElem.get() );
pElem->dump( xOut );
}
}