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

Unified Diff: third_party/WebKit/Source/core/svg/SVGStringList.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 of N] (Closed)
Patch Set: rebase 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/core/svg/SVGStringList.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGStringList.cpp b/third_party/WebKit/Source/core/svg/SVGStringList.cpp
index c726a3f4815dbb86198a565c87530e9d2a0daf43..be9c878d8bdb5866890c98f610736c27711fe4fe 100644
--- a/third_party/WebKit/Source/core/svg/SVGStringList.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGStringList.cpp
@@ -35,7 +35,7 @@ SVGStringList::~SVGStringList() {}
void SVGStringList::initialize(const String& item) {
m_values.clear();
- m_values.append(item);
+ m_values.push_back(item);
}
String SVGStringList::getItem(size_t index, ExceptionState& exceptionState) {
@@ -68,7 +68,7 @@ String SVGStringList::removeItem(size_t index, ExceptionState& exceptionState) {
}
void SVGStringList::appendItem(const String& newItem) {
- m_values.append(newItem);
+ m_values.push_back(newItem);
}
void SVGStringList::replaceItem(const String& newItem,
@@ -91,7 +91,7 @@ void SVGStringList::parseInternal(const CharType*& ptr, const CharType* end) {
ptr++;
if (ptr == start)
break;
- m_values.append(String(start, ptr - start));
+ m_values.push_back(String(start, ptr - start));
skipOptionalSVGSpacesOrDelimiter(ptr, end, delimiter);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGSVGElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698