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/path-chemistry.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index 56c93289d..8efd27be8 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -368,8 +368,7 @@ bool sp_item_list_to_curves(const std::vector &items, std::vector& selected, std::vector &to_select, bool skip_all_lpeitems) { bool did = false; - for (std::vector::const_iterator i = items.begin(); i != items.end(); ++i){ - SPItem *item = *i; + for (auto item : items){ g_assert(item != nullptr); SPDocument *document = item->document; -- cgit v1.2.3