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

Unified Diff: third_party/WebKit/Source/platform/SharedBuffer.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/SharedBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/SharedBuffer.cpp b/third_party/WebKit/Source/platform/SharedBuffer.cpp
index 06900feeb40db283970cf805041cfa6a9ec39203..340fadc4ae4aa878c02875075c9a5c9d76e2bae6 100644
--- a/third_party/WebKit/Source/platform/SharedBuffer.cpp
+++ b/third_party/WebKit/Source/platform/SharedBuffer.cpp
@@ -107,7 +107,7 @@ void SharedBuffer::appendInternal(const char* data, size_t length) {
char* segment;
if (!positionInSegment) {
segment = allocateSegment();
- m_segments.append(segment);
+ m_segments.push_back(segment);
} else
segment = m_segments.back() + positionInSegment;
@@ -122,7 +122,7 @@ void SharedBuffer::appendInternal(const char* data, size_t length) {
length -= bytesToCopy;
data += bytesToCopy;
segment = allocateSegment();
- m_segments.append(segment);
+ m_segments.push_back(segment);
bytesToCopy = std::min(length, static_cast<size_t>(kSegmentSize));
}
}

Powered by Google App Engine
This is Rietveld 408576698