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

Unified Diff: tools/gn/builder.cc

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/build_settings.cc ('k') | tools/gn/builder_record.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/builder.cc
diff --git a/tools/gn/builder.cc b/tools/gn/builder.cc
index 5af7c3df5a58c2a8fec245e465d5542b9742629f..a05493b9e40e52f513807ad656efc8950ab12f9c 100644
--- a/tools/gn/builder.cc
+++ b/tools/gn/builder.cc
@@ -5,6 +5,7 @@
#include "tools/gn/builder.h"
#include <stddef.h>
+#include <utility>
#include "tools/gn/config.h"
#include "tools/gn/deps_iterator.h"
@@ -82,7 +83,7 @@ void Builder::ItemDefined(scoped_ptr<Item> item) {
return;
}
- record->set_item(item.Pass());
+ record->set_item(std::move(item));
// Do target-specific dependency setup. This will also schedule dependency
// loads for targets that are required.
« no previous file with comments | « tools/gn/build_settings.cc ('k') | tools/gn/builder_record.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698