Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1183)

Unified Diff: Source/core/layout/svg/LayoutSVGResourceGradient.cpp

Issue 1062283002: Use C++11 range-based loop for core/layout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some cleanups Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/svg/LayoutSVGResourceGradient.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourceGradient.cpp b/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
index 6a5bc57cc72570665cd8d44395f9bf3be6f9bc8e..224b0eb9146a4c23e1e95e95d2ca9217a7f71fad 100644
--- a/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
@@ -114,9 +114,8 @@ void LayoutSVGResourceGradient::addStops(GradientData* gradientData, const Vecto
{
ASSERT(gradientData->gradient);
- const Vector<Gradient::ColorStop>::const_iterator end = stops.end();
- for (Vector<Gradient::ColorStop>::const_iterator it = stops.begin(); it != end; ++it)
- gradientData->gradient->addColorStop(*it);
+ for (auto stop : stops)
+ gradientData->gradient->addColorStop(stop);
}
GradientSpreadMethod LayoutSVGResourceGradient::platformSpreadMethodFromSVGType(SVGSpreadMethodType method) const

Powered by Google App Engine
This is Rietveld 408576698