diff options
author | Mario J. Rugiero <mrugiero@gmail.com> | 2015-10-31 14:55:02 -0300 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-01 11:30:15 +0000 |
commit | d841b4424363e436371bd671d95bdea4ca65f249 (patch) | |
tree | c2c82571932a572609e36b9a9c41bcc23d7892e9 /canvas | |
parent | c04fd82433e9155ad61ebd92ca7b43a729a87890 (diff) |
std::for_each -> range based for in canvas/source/tools/verifyinput.cxx
Change-Id: I71c714a459ea81a268f93f8ffc5286eb532794ca
Reviewed-on: https://gerrit.libreoffice.org/19711
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/tools/verifyinput.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/canvas/source/tools/verifyinput.cxx b/canvas/source/tools/verifyinput.cxx index ad9822b2395d..595d5dd0c6f0 100644 --- a/canvas/source/tools/verifyinput.cxx +++ b/canvas/source/tools/verifyinput.cxx @@ -461,13 +461,12 @@ namespace canvas #endif } - ::std::for_each( strokeAttributes.DashArray.getConstArray(), - strokeAttributes.DashArray.getConstArray() + strokeAttributes.DashArray.getLength(), - VerifyDashValue( pStr, xIf, nArgPos ) ); + VerifyDashValue aVerifyDashValue( pStr, xIf, nArgPos ); + for (auto const& aStrokeAttribute : strokeAttributes.DashArray) + aVerifyDashValue( aStrokeAttribute ); - ::std::for_each( strokeAttributes.LineArray.getConstArray(), - strokeAttributes.LineArray.getConstArray() + strokeAttributes.LineArray.getLength(), - VerifyDashValue( pStr, xIf, nArgPos ) ); + for (auto const& aStrokeAttribute : strokeAttributes.LineArray) + aVerifyDashValue( aStrokeAttribute ); if( strokeAttributes.StartCapType < rendering::PathCapType::BUTT || strokeAttributes.StartCapType > rendering::PathCapType::SQUARE ) |