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

Unified Diff: tools/gn/function_toolchain.cc

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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
Index: tools/gn/function_toolchain.cc
diff --git a/tools/gn/function_toolchain.cc b/tools/gn/function_toolchain.cc
index 727be54d7362ddc85e3d4b125ef77aff8f5974c7..d2baf71d46247b49c7e024b347f0ff315c0072f6 100644
--- a/tools/gn/function_toolchain.cc
+++ b/tools/gn/function_toolchain.cc
@@ -324,7 +324,7 @@ Value RunToolchain(Scope* scope,
// This object will actually be copied into the one owned by the toolchain
// manager, but that has to be done in the lock.
- scoped_ptr<Toolchain> toolchain(new Toolchain(scope->settings(), label));
+ std::unique_ptr<Toolchain> toolchain(new Toolchain(scope->settings(), label));
toolchain->set_defined_from(function);
toolchain->visibility().SetPublic();
@@ -840,7 +840,7 @@ Value RunTool(Scope* scope,
subst_output_validator = &IsValidToolSubstitution;
}
- scoped_ptr<Tool> tool(new Tool);
+ std::unique_ptr<Tool> tool(new Tool);
if (!ReadPattern(&block_scope, "command", subst_validator, tool.get(),
&Tool::set_command, err) ||

Powered by Google App Engine
This is Rietveld 408576698