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

Unified Diff: courgette/encoded_program.cc

Issue 1855133002: convert //courgette to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment in memory_allocator.h 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
« no previous file with comments | « courgette/encoded_program.h ('k') | courgette/encoded_program_fuzz_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/encoded_program.cc
diff --git a/courgette/encoded_program.cc b/courgette/encoded_program.cc
index 76fb33e66815056e591129a74461b095e0cd0f6e..e14b37efeba46fc615fd8bdff5471d5b7ef51bbd 100644
--- a/courgette/encoded_program.cc
+++ b/courgette/encoded_program.cc
@@ -279,7 +279,7 @@ enum FieldSelect {
static FieldSelect GetFieldSelect() {
// TODO(sra): Use better configuration.
- scoped_ptr<base::Environment> env(base::Environment::Create());
+ std::unique_ptr<base::Environment> env(base::Environment::Create());
std::string s;
env->GetVar("A_FIELDS", &s);
uint64_t fields;
@@ -781,9 +781,9 @@ Status WriteEncodedProgram(EncodedProgram* encoded, SinkStreamSet* sink) {
}
Status ReadEncodedProgram(SourceStreamSet* streams,
- scoped_ptr<EncodedProgram>* output) {
+ std::unique_ptr<EncodedProgram>* output) {
output->reset();
- scoped_ptr<EncodedProgram> encoded(new EncodedProgram());
+ std::unique_ptr<EncodedProgram> encoded(new EncodedProgram());
if (!encoded->ReadFrom(streams))
return C_DESERIALIZATION_FAILED;
« no previous file with comments | « courgette/encoded_program.h ('k') | courgette/encoded_program_fuzz_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698