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

Unified Diff: cc/output/bsp_tree.cc

Issue 1455023002: cc: Replace Pass() with std::move() in some subdirs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-cc
Patch Set: pass-cc2: . Created 5 years, 1 month 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 | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/output/bsp_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/bsp_tree.cc
diff --git a/cc/output/bsp_tree.cc b/cc/output/bsp_tree.cc
index f24e99bb3b35e50b8f1eb07394e7cca14e999aea..6f0b99ea204b236f0777fa54a5e2bd7b42a376fc 100644
--- a/cc/output/bsp_tree.cc
+++ b/cc/output/bsp_tree.cc
@@ -13,8 +13,7 @@
namespace cc {
-BspNode::BspNode(scoped_ptr<DrawPolygon> data) : node_data(data.Pass()) {
-}
+BspNode::BspNode(scoped_ptr<DrawPolygon> data) : node_data(std::move(data)) {}
BspNode::~BspNode() {
}
@@ -69,8 +68,8 @@ void BspTree::BuildTree(BspNode* node,
if (!split_result) {
break;
}
- front_list.push_back(new_front.Pass());
- back_list.push_back(new_back.Pass());
+ front_list.push_back(std::move(new_front));
+ back_list.push_back(std::move(new_back));
break;
}
case BSP_COPLANAR_FRONT:
« no previous file with comments | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/output/bsp_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698