update_engine: Remove release/aquire semantic from scoped_ptr/unique_ptr
Now that scoped_ptr is just a type alias to unique_ptr, there is no
longer a need to convert between the two by using .release() and
constructing the other with a raw pointer.
BUG: None
TEST: Built for dragonboard, all unit tests pass (except for update_engine,
but those tests failed before these changes too).
Change-Id: I0afcbc4d85b7ca78149fb29c188d7bcc99d4c80b
diff --git a/common/subprocess.cc b/common/subprocess.cc
index 9738b1d..53cccff 100644
--- a/common/subprocess.cc
+++ b/common/subprocess.cc
@@ -204,7 +204,7 @@
true,
base::Bind(&Subprocess::OnStdoutReady, record.get()));
- subprocess_records_[pid].reset(record.release());
+ subprocess_records_[pid] = std::move(record);
return pid;
}