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

Unified Diff: Source/core/html/HTMLAllCollection.cpp

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mike's comments Created 6 years, 1 month 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/html/FormAssociatedElement.h ('k') | Source/core/html/HTMLAppletElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLAllCollection.cpp
diff --git a/Source/core/html/HTMLAllCollection.cpp b/Source/core/html/HTMLAllCollection.cpp
index bcac63f89d2f438f83fefd1e9bab27a1340c4d4a..9b7c0e297debeecf6c7a62c7075b6b93985a4a70 100644
--- a/Source/core/html/HTMLAllCollection.cpp
+++ b/Source/core/html/HTMLAllCollection.cpp
@@ -52,13 +52,13 @@ Element* HTMLAllCollection::namedItemWithIndex(const AtomicString& name, unsigne
updateIdNameCache();
const NamedItemCache& cache = namedItemCache();
- if (WillBeHeapVector<RawPtrWillBeMember<Element> >* elements = cache.getElementsById(name)) {
+ if (WillBeHeapVector<RawPtrWillBeMember<Element>>* elements = cache.getElementsById(name)) {
if (index < elements->size())
return elements->at(index);
index -= elements->size();
}
- if (WillBeHeapVector<RawPtrWillBeMember<Element> >* elements = cache.getElementsByName(name)) {
+ if (WillBeHeapVector<RawPtrWillBeMember<Element>>* elements = cache.getElementsByName(name)) {
if (index < elements->size())
return elements->at(index);
}
@@ -68,7 +68,7 @@ Element* HTMLAllCollection::namedItemWithIndex(const AtomicString& name, unsigne
void HTMLAllCollection::namedGetter(const AtomicString& name, NodeListOrElement& returnValue)
{
- WillBeHeapVector<RefPtrWillBeMember<Element> > namedItems;
+ WillBeHeapVector<RefPtrWillBeMember<Element>> namedItems;
this->namedItems(name, namedItems);
if (!namedItems.size())
« no previous file with comments | « Source/core/html/FormAssociatedElement.h ('k') | Source/core/html/HTMLAppletElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698