summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xml_helper/xml_element.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlscript/source/xml_helper/xml_element.cxx b/xmlscript/source/xml_helper/xml_element.cxx
index 9eb0ea7d423a..5bcb109cd044 100644
--- a/xmlscript/source/xml_helper/xml_element.cxx
+++ b/xmlscript/source/xml_helper/xml_element.cxx
@@ -45,7 +45,7 @@ Reference< xml::sax::XAttributeList > const & XMLElement::getSubElement( sal_Int
void XMLElement::dumpSubElements( Reference< xml::sax::XDocumentHandler > const & xOut )
{
- for (Reference<XAttributeList> & _subElem : _subElems)
+ for (const Reference<XAttributeList> & _subElem : _subElems)
{
XMLElement * pElem = static_cast< XMLElement * >( _subElem.get() );
pElem->dump( xOut );