diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-12-11 11:09:20 -0800 |
---|---|---|
committer | Chih-hung Hsieh <chh@google.com> | 2018-12-17 20:00:55 +0000 |
commit | a1b644e88cfe5319e9ada7ad24e6cd215a7ea402 (patch) | |
tree | e4b24972d2c59b6512cd981b3edf78b03f7c1add /tools/aapt2/ResourceParser.cpp | |
parent | d0c404cb21de6e86329b5ceb79d1459dd8f2f4cb (diff) |
Fix performance-for-range-copy warnings
Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: Ie481e88025a7a1f3abde8ff63420d5ccd8577e52
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) { |