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

Unified Diff: courgette/disassembler_elf_32_arm.cc

Issue 1969543002: Unified usage of vector<unique_ptr<T>> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: courgette/disassembler_elf_32_arm.cc
diff --git a/courgette/disassembler_elf_32_arm.cc b/courgette/disassembler_elf_32_arm.cc
index 0ea3e57a7b3831dac8c842fcd2ab729300515711..ba97a78d1fbcc28889c5fddd7d9ececdcc8066f2 100644
--- a/courgette/disassembler_elf_32_arm.cc
+++ b/courgette/disassembler_elf_32_arm.cc
@@ -505,7 +505,7 @@ CheckBool DisassemblerElf32ARM::ParseRel32RelocsFromSection(
if (found && IsValidTargetRVA(target_rva)) {
uint16_t op_size = rel32_rva->op_size();
- rel32_locations_.push_back(rel32_rva.release());
+ rel32_locations_.push_back(std::move(rel32_rva));
#if COURGETTE_HISTOGRAM_TARGETS
++rel32_target_rvas_[target_rva];
#endif

Powered by Google App Engine
This is Rietveld 408576698