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

Unified Diff: Source/core/dom/DocumentParser.cpp

Issue 645443003: Move parts of core/dom to C++11 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed nit Created 6 years, 2 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
« no previous file with comments | « Source/core/dom/DocumentOrderedMap.h ('k') | Source/core/dom/DocumentStyleSheetCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentParser.cpp
diff --git a/Source/core/dom/DocumentParser.cpp b/Source/core/dom/DocumentParser.cpp
index a9f93e8186a8a544e17fdde92b7b6ad161442b4d..e0abb617c084dc9a1e343aaaf74281d44064b7b1 100644
--- a/Source/core/dom/DocumentParser.cpp
+++ b/Source/core/dom/DocumentParser.cpp
@@ -66,7 +66,7 @@ void DocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder>)
TextResourceDecoder* DocumentParser::decoder()
{
- return 0;
+ return nullptr;
}
void DocumentParser::prepareToStopParsing()
@@ -80,11 +80,10 @@ void DocumentParser::stopParsing()
m_state = StoppedState;
// Clients may be removed while in the loop. Make a snapshot for iteration.
- WillBeHeapVector<RawPtrWillBeMember<DocumentParserClient> > clientsSnapshot;
+ WillBeHeapVector<RawPtrWillBeMember<DocumentParserClient>> clientsSnapshot;
copyToVector(m_clients, clientsSnapshot);
- for (WillBeHeapVector<RawPtrWillBeMember<DocumentParserClient> >::const_iterator it = clientsSnapshot.begin(), itEnd = clientsSnapshot.end(); it != itEnd; ++it) {
- DocumentParserClient* client = *it;
+ for (DocumentParserClient* client : clientsSnapshot) {
if (!m_clients.contains(client))
continue;
« no previous file with comments | « Source/core/dom/DocumentOrderedMap.h ('k') | Source/core/dom/DocumentStyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698