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

Unified Diff: tools/gn/builder_record.h

Issue 1544333002: Convert Pass()→std::move() in //tools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « tools/gn/builder.cc ('k') | tools/gn/function_toolchain.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/builder_record.h
diff --git a/tools/gn/builder_record.h b/tools/gn/builder_record.h
index 0940cc8b1c127cf0504eb7224e6c0f2aa5df28fd..469b1cffd3c5cb57cfc356f56413448c069174c6 100644
--- a/tools/gn/builder_record.h
+++ b/tools/gn/builder_record.h
@@ -6,6 +6,7 @@
#define TOOLS_GN_BUILDER_RECORD_H_
#include <set>
+#include <utility>
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
@@ -54,7 +55,7 @@ class BuilderRecord {
Item* item() { return item_.get(); }
const Item* item() const { return item_.get(); }
- void set_item(scoped_ptr<Item> item) { item_ = item.Pass(); }
+ void set_item(scoped_ptr<Item> item) { item_ = std::move(item); }
// Indicates from where this item was originally referenced from that caused
// it to be loaded. For targets for which we encountered the declaration
« no previous file with comments | « tools/gn/builder.cc ('k') | tools/gn/function_toolchain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698