From 091880882c10023f9af5f0df6323270767ca4649 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 13 Jul 2018 11:48:16 -0700 Subject: [PATCH] Fix unnecessary copy initialization warnings Bug: 30413862 Test: build with WITH_TIDY=1 Change-Id: I5de56c163d26e7522141ca06020321c481eea233 --- camera/common/1.0/default/VendorTagDescriptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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);