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

Unified Diff: tools/gn/scope.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/parser.cc ('k') | tools/gn/scope.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/scope.h
diff --git a/tools/gn/scope.h b/tools/gn/scope.h
index 0b9bfbe48be1c3bf0dae3075ff434fc1b31c78cd..7b329412450ab24ecdf7369faa58c33c41ed84d6 100644
--- a/tools/gn/scope.h
+++ b/tools/gn/scope.h
@@ -7,6 +7,7 @@
#include <map>
#include <set>
+#include <utility>
#include "base/containers/hash_tables.h"
#include "base/macros.h"
@@ -240,7 +241,7 @@ class Scope {
const PatternList* GetSourcesAssignmentFilter() const;
void set_sources_assignment_filter(
scoped_ptr<PatternList> f) {
- sources_assignment_filter_ = f.Pass();
+ sources_assignment_filter_ = std::move(f);
}
// Indicates if we're currently processing the build configuration file.
« no previous file with comments | « tools/gn/parser.cc ('k') | tools/gn/scope.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698