Index: Source/core/css/FontLoader.cpp |
diff --git a/Source/core/css/FontLoader.cpp b/Source/core/css/FontLoader.cpp |
index b52c7e6d8aa51cb24b7059053e17061ca5cf04f7..79fc64af05c4b5aa6d4a670514c16dfde2fb69f2 100644 |
--- a/Source/core/css/FontLoader.cpp |
+++ b/Source/core/css/FontLoader.cpp |
@@ -55,8 +55,8 @@ void FontLoader::loadPendingFonts() |
FontsToLoadVector fontsToBeginLoading; |
fontsToBeginLoading.swap(m_fontsToBeginLoading); |
- for (FontsToLoadVector::iterator it = fontsToBeginLoading.begin(); it != fontsToBeginLoading.end(); ++it) { |
- FontResource* fontResource = it->first.get(); |
+ for (const auto& item : fontsToBeginLoading) { |
+ FontResource* fontResource = item.first.get(); |
fontResource->beginLoadIfNeeded(m_resourceFetcher); |
} |
@@ -88,8 +88,8 @@ void FontLoader::clearResourceFetcherAndFontSelector() |
void FontLoader::clearPendingFonts() |
{ |
- for (FontsToLoadVector::iterator it = m_fontsToBeginLoading.begin(); it != m_fontsToBeginLoading.end(); ++it) |
- it->first->didUnscheduleLoad(); |
+ for (const auto& item : m_fontsToBeginLoading) |
+ item.first->didUnscheduleLoad(); |
m_fontsToBeginLoading.clear(); |
} |