summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/colorpicker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/colorpicker.cxx')
-rw-r--r--cui/source/dialogs/colorpicker.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index fbba1abd1e90..65f03fb3a046 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -1302,15 +1302,15 @@ Sequence< PropertyValue > SAL_CALL ColorPicker::getPropertyValues( )
void SAL_CALL ColorPicker::setPropertyValues( const Sequence< PropertyValue >& aProps )
{
- for( sal_Int32 n = 0; n < aProps.getLength(); n++ )
+ for ( const PropertyValue& rProp : aProps )
{
- if( aProps[n].Name == gsColorKey )
+ if( rProp.Name == gsColorKey )
{
- aProps[n].Value >>= mnColor;
+ rProp.Value >>= mnColor;
}
- else if( aProps[n].Name == gsModeKey )
+ else if( rProp.Name == gsModeKey )
{
- aProps[n].Value >>= mnMode;
+ rProp.Value >>= mnMode;
}
}
}