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

Unified Diff: third_party/WebKit/Source/platform/json/JSONValues.cpp

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h Created 3 years, 11 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
Index: third_party/WebKit/Source/platform/json/JSONValues.cpp
diff --git a/third_party/WebKit/Source/platform/json/JSONValues.cpp b/third_party/WebKit/Source/platform/json/JSONValues.cpp
index 09051f4c90322b652e90fe7887e85098a1be73ca..52c4e340a714eb231066ad78e0ba4f1c083cc6d8 100644
--- a/third_party/WebKit/Source/platform/json/JSONValues.cpp
+++ b/third_party/WebKit/Source/platform/json/JSONValues.cpp
@@ -453,34 +453,34 @@ std::unique_ptr<JSONValue> JSONArray::clone() const {
JSONArray::JSONArray() : JSONValue(TypeArray) {}
void JSONArray::pushBoolean(bool value) {
- m_data.append(JSONBasicValue::create(value));
+ m_data.push_back(JSONBasicValue::create(value));
}
void JSONArray::pushInteger(int value) {
- m_data.append(JSONBasicValue::create(value));
+ m_data.push_back(JSONBasicValue::create(value));
}
void JSONArray::pushDouble(double value) {
- m_data.append(JSONBasicValue::create(value));
+ m_data.push_back(JSONBasicValue::create(value));
}
void JSONArray::pushString(const String& value) {
- m_data.append(JSONString::create(value));
+ m_data.push_back(JSONString::create(value));
}
void JSONArray::pushValue(std::unique_ptr<JSONValue> value) {
DCHECK(value);
- m_data.append(std::move(value));
+ m_data.push_back(std::move(value));
}
void JSONArray::pushObject(std::unique_ptr<JSONObject> value) {
DCHECK(value);
- m_data.append(std::move(value));
+ m_data.push_back(std::move(value));
}
void JSONArray::pushArray(std::unique_ptr<JSONArray> value) {
DCHECK(value);
- m_data.append(std::move(value));
+ m_data.push_back(std::move(value));
}
JSONValue* JSONArray::at(size_t index) {

Powered by Google App Engine
This is Rietveld 408576698