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/gradient-chemistry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gradient-chemistry.cpp') diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp index 8b3ff4d8a..10adb8af8 100644 --- a/src/gradient-chemistry.cpp +++ b/src/gradient-chemistry.cpp @@ -1641,8 +1641,8 @@ void sp_gradient_unset_swatch(SPDesktop *desktop, std::string id) if (doc) { const std::vector gradients = doc->getResourceList("gradient"); - for (std::vector::const_iterator i = gradients.begin(); i != gradients.end(); ++i) { - SPGradient* grad = SP_GRADIENT(*i); + for (auto gradient : gradients) { + SPGradient* grad = SP_GRADIENT(gradient); if ( id == grad->getId() ) { grad->setSwatch(false); DocumentUndo::done(doc, SP_VERB_CONTEXT_GRADIENT, -- cgit v1.2.3