| 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;
|
|
|
|
|