diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-09-16 13:53:43 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-17 08:12:03 +0200 |
commit | 30530afaaa715473a2f9c3f068beeed5f3a98daf (patch) | |
tree | 5d5b499a75c4b363eec63e11b822de0da3cd5f60 /xmloff/source/forms/handler | |
parent | ffe2b51a4919fb64a8debecb724d1e959abf343a (diff) |
Simplify containers iterations in xmloff/source/[f-t]*
Use range-based loop or replace with STL functions.
Change-Id: Ic94c7e292f44d460038d3ca99c7e4cc02958d8a3
Reviewed-on: https://gerrit.libreoffice.org/60549
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/forms/handler')
-rw-r--r-- | xmloff/source/forms/handler/vcl_date_handler.cxx | 7 | ||||
-rw-r--r-- | xmloff/source/forms/handler/vcl_time_handler.cxx | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/xmloff/source/forms/handler/vcl_date_handler.cxx b/xmloff/source/forms/handler/vcl_date_handler.cxx index ec518f9be94d..8821eec23361 100644 --- a/xmloff/source/forms/handler/vcl_date_handler.cxx +++ b/xmloff/source/forms/handler/vcl_date_handler.cxx @@ -88,12 +88,9 @@ namespace xmloff const Any aPropertyValue( makeAny( aDate ) ); OSL_ENSURE( o_propertyValues.size() == 1, "VCLDateHandler::getPropertyValues: date strings represent exactly one property - not more, not less!" ); - for ( PropertyValues::iterator prop = o_propertyValues.begin(); - prop != o_propertyValues.end(); - ++prop - ) + for ( auto& prop : o_propertyValues ) { - prop->second = aPropertyValue; + prop.second = aPropertyValue; } return true; } diff --git a/xmloff/source/forms/handler/vcl_time_handler.cxx b/xmloff/source/forms/handler/vcl_time_handler.cxx index 2bedb56cc775..c37379b37b64 100644 --- a/xmloff/source/forms/handler/vcl_time_handler.cxx +++ b/xmloff/source/forms/handler/vcl_time_handler.cxx @@ -91,12 +91,9 @@ namespace xmloff const Any aPropertyValue( makeAny( aTime ) ); OSL_ENSURE( o_propertyValues.size() == 1, "VCLTimeHandler::getPropertyValues: time strings represent exactly one property - not more, not less!" ); - for ( PropertyValues::iterator prop = o_propertyValues.begin(); - prop != o_propertyValues.end(); - ++prop - ) + for ( auto& prop : o_propertyValues ) { - prop->second = aPropertyValue; + prop.second = aPropertyValue; } return true; } |