diff options
author | 2016-11-08 08:09:33 -0800 | |
---|---|---|
committer | 2016-11-08 15:04:48 -0800 | |
commit | ca620d7bc03b23a0bcf0ef58df58603ee000dca0 (patch) | |
tree | 07cb026075b70a958d14ae84b4e213178a6ba0b4 /compiler/optimizing/bytecode_utils.h | |
parent | b02b8d7df48ea3314cfcb3c08d84ac9556363833 (diff) |
ART: Fix tidy warnings
Switch to char versions of find variants.
Add "explicit" constructor variants or refactor and
remove defaults.
Use const references.
Bug: 32619234
Test: m test-art-host
Change-Id: I970cc2f47d6cf8f0c74104b994b075b2fafb3d45
Diffstat (limited to 'compiler/optimizing/bytecode_utils.h')
-rw-r--r-- | compiler/optimizing/bytecode_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/bytecode_utils.h b/compiler/optimizing/bytecode_utils.h index 6dfffce117..133afa47fe 100644 --- a/compiler/optimizing/bytecode_utils.h +++ b/compiler/optimizing/bytecode_utils.h @@ -26,7 +26,8 @@ namespace art { class CodeItemIterator : public ValueObject { public: - CodeItemIterator(const DexFile::CodeItem& code_item, uint32_t start_dex_pc = 0u) + explicit CodeItemIterator(const DexFile::CodeItem& code_item) : CodeItemIterator(code_item, 0u) {} + CodeItemIterator(const DexFile::CodeItem& code_item, uint32_t start_dex_pc) : code_ptr_(code_item.insns_ + start_dex_pc), code_end_(code_item.insns_ + code_item.insns_size_in_code_units_), dex_pc_(start_dex_pc) {} |