summaryrefslogtreecommitdiff
path: root/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
index 4d157d2c6736..006adccdb427 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
@@ -1195,9 +1195,8 @@ void TitledBoxElement::endElement()
}
// create radios AFTER group box!
- for ( size_t nPos = 0; nPos < _radios.size(); ++nPos )
+ for (Reference<XElement>& xRadio : _radios)
{
- Reference< xml::input::XElement > xRadio( _radios[ nPos ] );
Reference< xml::input::XAttributes > xAttributes( xRadio->getAttributes() );
ControlImportContext ctx( _pImport, getControlId( xAttributes ), getControlModelName( "com.sun.star.awt.UnoControlRadioButtonModel", xAttributes ) );
@@ -1291,9 +1290,8 @@ Reference< xml::input::XElement > RadioGroupElement::startChildElement(
void RadioGroupElement::endElement()
throw (xml::sax::SAXException, RuntimeException, std::exception)
{
- for ( size_t nPos = 0; nPos < _radios.size(); ++nPos )
+ for (Reference<XElement>& xRadio : _radios)
{
- Reference< xml::input::XElement > xRadio( _radios[ nPos ] );
Reference< xml::input::XAttributes > xAttributes(
xRadio->getAttributes() );