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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h

Issue 2554693003: Migrate WTF::Vector::append() to ::push_back() [part 1 of N] (Closed)
Patch Set: rebase Created 4 years 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: third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h b/third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h
index 611f028f230e59de03c0caf07c2c8239c101af42..39b25602ae48d5ab737c80c0c0996c2dc412209b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h
+++ b/third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h
@@ -94,17 +94,17 @@ void swap(HeapVector<TraceWrapperMember<T>>& a,
HeapVector<TraceWrapperMember<T>> temp;
temp.reserveCapacity(a.size());
for (auto item : a) {
- temp.append(TraceWrapperMember<T>(parentForB, item.get()));
+ temp.push_back(TraceWrapperMember<T>(parentForB, item.get()));
}
a.clear();
a.reserveCapacity(b.size());
for (auto item : b) {
- a.append(TraceWrapperMember<T>(parentForA, item.get()));
+ a.push_back(TraceWrapperMember<T>(parentForA, item.get()));
}
b.clear();
b.reserveCapacity(temp.size());
for (auto item : temp) {
- b.append(TraceWrapperMember<T>(parentForB, item.get()));
+ b.push_back(TraceWrapperMember<T>(parentForB, item.get()));
}
}
@@ -121,17 +121,17 @@ void swap(HeapVector<TraceWrapperMember<T>>& a,
HeapVector<TraceWrapperMember<T>> temp;
temp.reserveCapacity(a.size());
for (auto item : a) {
- temp.append(TraceWrapperMember<T>(nullptr, item.get()));
+ temp.push_back(TraceWrapperMember<T>(nullptr, item.get()));
}
a.clear();
a.reserveCapacity(b.size());
for (auto item : b) {
- a.append(TraceWrapperMember<T>(parentForA, item.get()));
+ a.push_back(TraceWrapperMember<T>(parentForA, item.get()));
}
b.clear();
b.reserveCapacity(temp.size());
for (auto item : temp) {
- b.append(item.get());
+ b.push_back(item.get());
}
}

Powered by Google App Engine
This is Rietveld 408576698