commit | 091880882c10023f9af5f0df6323270767ca4649 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Jul 13 11:48:16 2018 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Fri Jul 13 11:48:16 2018 -0700 |
tree | ad89b0e2e1df4513208a0b6f74a5cf2f0c354cbd | |
parent | a85e213544aa7fa1a471fdc5ea315fe286dbe4e2 [diff] |
Fix unnecessary copy initialization warnings Bug: 30413862 Test: build with WITH_TIDY=1 Change-Id: I5de56c163d26e7522141ca06020321c481eea233
diff --git a/camera/common/1.0/default/VendorTagDescriptor.cpp b/camera/common/1.0/default/VendorTagDescriptor.cpp index bc18270..219d10c 100644 --- a/camera/common/1.0/default/VendorTagDescriptor.cpp +++ b/camera/common/1.0/default/VendorTagDescriptor.cpp
@@ -258,7 +258,7 @@ for (size_t i = 0; i < static_cast<size_t>(tagCount); ++i) { uint32_t tag = tagArray[i]; - String8 sectionString = tagToSectionMap.valueFor(tag); + const String8& sectionString = tagToSectionMap.valueFor(tag); // Set up tag to section index map ssize_t index = sections.indexOf(sectionString);