summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtfldi.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/txtfldi.cxx')
-rw-r--r--xmloff/source/text/txtfldi.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index c1b1093a8ad3..ca2324471958 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -2490,24 +2490,23 @@ void XMLMacroFieldImportContext::PrepareField(
Sequence<PropertyValue> aValues;
pEvents->GetEventSequence( "OnClick", aValues );
- sal_Int32 nLength = aValues.getLength();
- for( sal_Int32 i = 0; i < nLength; i++ )
+ for( const auto& rValue : aValues )
{
- if ( aValues[i].Name == "ScriptType" )
+ if ( rValue.Name == "ScriptType" )
{
// ignore ScriptType
}
- else if ( aValues[i].Name == "Library" )
+ else if ( rValue.Name == "Library" )
{
- aValues[i].Value >>= sLibraryName;
+ rValue.Value >>= sLibraryName;
}
- else if ( aValues[i].Name == "MacroName" )
+ else if ( rValue.Name == "MacroName" )
{
- aValues[i].Value >>= sMacroName;
+ rValue.Value >>= sMacroName;
}
- if ( aValues[i].Name == "Script" )
+ if ( rValue.Name == "Script" )
{
- aValues[i].Value >>= sScriptURL;
+ rValue.Value >>= sScriptURL;
}
}
}