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

Unified Diff: third_party/WebKit/Source/platform/PODRedBlackTree.h

Issue 2852893002: Made RefPtr constructor only accept PassRefPtr rvalues. (Closed)
Patch Set: added move wrap Created 3 years, 7 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 | third_party/WebKit/Source/platform/wtf/RefPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/PODRedBlackTree.h
diff --git a/third_party/WebKit/Source/platform/PODRedBlackTree.h b/third_party/WebKit/Source/platform/PODRedBlackTree.h
index 0edbe96dcd8ca0e1eca4106c3cf2b50a91a5727c..fe71ae10ecbdb7f9dd544ff570904d362ca3f001 100644
--- a/third_party/WebKit/Source/platform/PODRedBlackTree.h
+++ b/third_party/WebKit/Source/platform/PODRedBlackTree.h
@@ -138,7 +138,7 @@ class PODRedBlackTree {
// Constructs a new red-black tree, allocating temporary objects
// from the given PODArena.
explicit PODRedBlackTree(PassRefPtr<PODFreeListArena<Node>> arena)
- : arena_(arena),
+ : arena_(std::move(arena)),
root_(0),
needs_full_ordering_comparisons_(false)
#ifndef NDEBUG
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/wtf/RefPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698