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

Unified Diff: tools/gn/functions.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/function_toolchain.cc ('k') | tools/gn/functions_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/functions.cc
diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc
index d3d5d252bd27a2a4b7b0f12c9afeee04714c1387..fb02fa8bf9b8a6e4cfc371d248775f0095e5cda2 100644
--- a/tools/gn/functions.cc
+++ b/tools/gn/functions.cc
@@ -5,8 +5,8 @@
#include "tools/gn/functions.h"
#include <stddef.h>
-
#include <iostream>
+#include <utility>
#include "base/environment.h"
#include "base/strings/string_util.h"
@@ -673,7 +673,7 @@ Value RunSetSourcesAssignmentFilter(Scope* scope,
scoped_ptr<PatternList> f(new PatternList);
f->SetFromValue(args[0], err);
if (!err->has_error())
- scope->set_sources_assignment_filter(f.Pass());
+ scope->set_sources_assignment_filter(std::move(f));
}
return Value();
}
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/functions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698