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

Unified Diff: courgette/disassembler_elf_32_x86_unittest.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_x86_unittest.cc
diff --git a/courgette/disassembler_elf_32_x86_unittest.cc b/courgette/disassembler_elf_32_x86_unittest.cc
index 7060dd342efe0cdd6a31841fc3d80c248f702da8..92f970d5252140691f9e92ee7a2a89f2a4b54f2c 100644
--- a/courgette/disassembler_elf_32_x86_unittest.cc
+++ b/courgette/disassembler_elf_32_x86_unittest.cc
@@ -98,7 +98,7 @@ void DisassemblerElf32X86Test::TestExe(const char* file_name,
// Flatten the list typed rel32 to a list of rel32 RVAs.
std::vector<RVA> rel32_list;
rel32_list.reserve(disassembler->Rel32Locations().size());
- for (TypedRVA* typed_rel32 : disassembler->Rel32Locations())
+ for (auto& typed_rel32 : disassembler->Rel32Locations())
rel32_list.push_back(typed_rel32->rva());
EXPECT_EQ(expected_abs_count, abs32_list.size());

Powered by Google App Engine
This is Rietveld 408576698