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

New commits:
commit d841b4424363e436371bd671d95bdea4ca65f249
Author: Mario J. Rugiero <mrugi...@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 <c...@libreoffice.org>
    Reviewed-by: Noel Grandin <noelgran...@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 
)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to