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

Unified Diff: cc/base/list_container.h

Issue 2064833002: Implement DrawQuad StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a TODO Created 4 years, 6 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
« no previous file with comments | « no previous file | cc/ipc/DEPS » ('j') | cc/ipc/quads.typemap » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/list_container.h
diff --git a/cc/base/list_container.h b/cc/base/list_container.h
index 04c7f14a0322bcc03b99d761540f401742beab7a..b34e58805c507ebac68086cf4736320367b9fbbe 100644
--- a/cc/base/list_container.h
+++ b/cc/base/list_container.h
@@ -144,6 +144,11 @@ class ListContainer {
return result;
}
+ ListContainer& operator=(ListContainer&& other) {
+ helper_.data_.swap(other.helper_.data_);
+ return *this;
+ }
+
template <typename DerivedElementType>
void swap(ListContainer<DerivedElementType>& other) {
helper_.data_.swap(other.helper_.data_);
« no previous file with comments | « no previous file | cc/ipc/DEPS » ('j') | cc/ipc/quads.typemap » ('J')

Powered by Google App Engine
This is Rietveld 408576698