diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-12-17 14:17:57 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-12-17 14:17:57 -0800 |
commit | 2296036a400e77572c0e346db1f499438d5196d5 (patch) | |
tree | a1127bee78079c4cd2f46af36df179da3cdf36cf /tools/aapt2/ResourceParser.cpp | |
parent | 9020a7cd30b1dc2feb247c519faf67c77d7601b7 (diff) | |
parent | 7adb73f332bfb4bf9c506ee1a3261c0fb20a693c (diff) |
Merge "Fix performance-for-range-copy warnings" am: bc29242288
am: 7adb73f332
Change-Id: I0ab1a28f5490f96bc8b08f073d364a01ff2f20df
Diffstat (limited to 'tools/aapt2/ResourceParser.cpp')
-rw-r--r-- | tools/aapt2/ResourceParser.cpp | 2 |
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) { |