summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceParser.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-12-17 14:08:29 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-17 14:08:29 -0800
commit7adb73f332bfb4bf9c506ee1a3261c0fb20a693c (patch)
tree0924a44b5459f29f5f91dde4144be167342f04a1 /tools/aapt2/ResourceParser.cpp
parent1e41ae605da556761951814030c0a9c47f89314e (diff)
parentbc292422885b64d369c3420e1eb55a039dfdeeec (diff)
Merge "Fix performance-for-range-copy warnings"
am: bc29242288 Change-Id: I96e7ca53f2878fd9f75ac14999a02a96a96bb93e
Diffstat (limited to 'tools/aapt2/ResourceParser.cpp')
-rw-r--r--tools/aapt2/ResourceParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt2/ResourceParser.cpp b/tools/aapt2/ResourceParser.cpp
index 39ca80bbcf51..968376b8229b 100644
--- a/tools/aapt2/ResourceParser.cpp
+++ b/tools/aapt2/ResourceParser.cpp
@@ -78,7 +78,7 @@ static uint32_t ParseFormatType(const StringPiece& piece) {
static uint32_t ParseFormatAttribute(const StringPiece& str) {
uint32_t mask = 0;
- for (StringPiece part : util::Tokenize(str, '|')) {
+ for (const StringPiece& part : util::Tokenize(str, '|')) {
StringPiece trimmed_part = util::TrimWhitespace(part);
uint32_t type = ParseFormatType(trimmed_part);
if (type == 0) {