summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-07-13 11:48:16 -0700
committerChih-Hung Hsieh <chh@google.com>2018-07-13 11:48:16 -0700
commit091880882c10023f9af5f0df6323270767ca4649 (patch)
treead89b0e2e1df4513208a0b6f74a5cf2f0c354cbd /camera
parenta85e213544aa7fa1a471fdc5ea315fe286dbe4e2 (diff)
downloadplatform_hardware_interfaces-091880882c10023f9af5f0df6323270767ca4649.tar.gz
platform_hardware_interfaces-091880882c10023f9af5f0df6323270767ca4649.tar.bz2
platform_hardware_interfaces-091880882c10023f9af5f0df6323270767ca4649.zip
Fix unnecessary copy initialization warnings
Bug: 30413862 Test: build with WITH_TIDY=1 Change-Id: I5de56c163d26e7522141ca06020321c481eea233
Diffstat (limited to 'camera')
-rw-r--r--camera/common/1.0/default/VendorTagDescriptor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/common/1.0/default/VendorTagDescriptor.cpp b/camera/common/1.0/default/VendorTagDescriptor.cpp
index bc18270605..219d10c3c0 100644
--- a/camera/common/1.0/default/VendorTagDescriptor.cpp
+++ b/camera/common/1.0/default/VendorTagDescriptor.cpp
@@ -258,7 +258,7 @@ status_t VendorTagDescriptor::createDescriptorFromOps(const vendor_tag_ops_t* vO
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);