From 169dff19d4da8d76e69b8e896aa25b0013639c03 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Wed, 2 Jan 2019 10:41:30 +0100 Subject: modernize loops --- src/snapped-line.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/snapped-line.cpp') diff --git a/src/snapped-line.cpp b/src/snapped-line.cpp index c2dc37da0..5224117f6 100644 --- a/src/snapped-line.cpp +++ b/src/snapped-line.cpp @@ -264,9 +264,9 @@ bool getClosestIntersectionSL(std::list const &list1, std { bool success = false; - for (std::list::const_iterator i = list1.begin(); i != list1.end(); ++i) { - for (std::list::const_iterator j = list2.begin(); j != list2.end(); ++j) { - Inkscape::SnappedPoint sp = (*i).intersect(*j); + for (const auto & i : list1) { + for (const auto & j : list2) { + Inkscape::SnappedPoint sp = i.intersect(j); if (sp.getAtIntersection()) { // if it's the first point bool const c1 = !success; -- cgit v1.2.3