[Libreoffice-commits] core.git: canvas/source

Mario J. Rugiero mrugiero at gmail.com
Sun Nov 1 03:30:37 PST 2015


 canvas/source/tools/verifyinput.cxx |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit d841b4424363e436371bd671d95bdea4ca65f249
Author: Mario J. Rugiero <mrugiero at gmail.com>
Date:   Sat Oct 31 14:55:02 2015 -0300

    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 at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/canvas/source/tools/verifyinput.cxx b/canvas/source/tools/verifyinput.cxx
index ad9822b..595d5dd 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 )


More information about the Libreoffice-commits mailing list