From 89de444350fdbd7df4fb4d95bb71f00e6673b466 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 18 Jun 2018 13:33:55 -0700 Subject: ART: Fix some performance-X tidy Fix performance-for-range-copy, performance-unnecessary-copy-initialization and performance-unnecessary-value-param issues. Test: mmma art Test: m test-art-host Change-Id: I43d8736fc541030a3c61f66aeee0b9c2f1d295f7 --- libdexfile/dex/dex_instruction_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdexfile/dex/dex_instruction_test.cc') diff --git a/libdexfile/dex/dex_instruction_test.cc b/libdexfile/dex/dex_instruction_test.cc index c944085b9e..6ce9dbafc8 100644 --- a/libdexfile/dex/dex_instruction_test.cc +++ b/libdexfile/dex/dex_instruction_test.cc @@ -135,7 +135,7 @@ TEST(Instruction, PropertiesOf4rcc) { static void Build35c(uint16_t* out, Instruction::Code code, uint16_t method_idx, - std::vector args) { + const std::vector& args) { out[0] = 0; out[0] |= (args.size() << 12); out[0] |= static_cast(code); @@ -152,7 +152,7 @@ static void Build35c(uint16_t* out, static std::string DumpInst35c(Instruction::Code code, uint16_t method_idx, - std::vector args) { + const std::vector& args) { uint16_t inst[6] = {}; Build35c(inst, code, method_idx, args); return Instruction::At(inst)->DumpString(nullptr); -- cgit v1.2.3-59-g8ed1b