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

Unified Diff: third_party/WebKit/Source/platform/graphics/ContiguousContainer.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/graphics/ContiguousContainer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
index f9d51b5e148b8213f2c945679794c4b0be503f90..b38da5db5f585dfdef2c29ae8070a78eaaffd07f 100644
--- a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
@@ -125,7 +125,7 @@ void* ContiguousContainerBase::allocate(size_t objectSize,
}
void* element = bufferForAlloc->allocate(objectSize);
- m_elements.append(element);
+ m_elements.push_back(element);
return element;
}
@@ -172,7 +172,7 @@ ContiguousContainerBase::allocateNewBufferForNextAllocation(
std::unique_ptr<Buffer> newBuffer =
WTF::makeUnique<Buffer>(bufferSize, typeName);
Buffer* bufferToReturn = newBuffer.get();
- m_buffers.append(std::move(newBuffer));
+ m_buffers.push_back(std::move(newBuffer));
m_endIndex = m_buffers.size() - 1;
return bufferToReturn;
}

Powered by Google App Engine
This is Rietveld 408576698