summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceUtils.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-12-17 14:31:14 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-17 14:31:14 -0800
commit2491af24a8f7195d7c2ae0b2450dcaa701852891 (patch)
tree6318ba7aada88a08b48d8293cea7aa3bd708f0e5 /tools/aapt2/ResourceUtils.cpp
parent73d3d815cd5e7613735d429be7f1398a9053b9f1 (diff)
parent2296036a400e77572c0e346db1f499438d5196d5 (diff)
Merge "Fix performance-for-range-copy warnings" am: bc29242288 am: 7adb73f332
am: 2296036a40 Change-Id: Ia99ea6c9633986e68340bc88983d06baa7a1c597
Diffstat (limited to 'tools/aapt2/ResourceUtils.cpp')
-rw-r--r--tools/aapt2/ResourceUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt2/ResourceUtils.cpp b/tools/aapt2/ResourceUtils.cpp
index da22e885b917..c6f91527c91c 100644
--- a/tools/aapt2/ResourceUtils.cpp
+++ b/tools/aapt2/ResourceUtils.cpp
@@ -362,7 +362,7 @@ std::unique_ptr<BinaryPrimitive> TryParseFlagSymbol(const Attribute* flag_attr,
return util::make_unique<BinaryPrimitive>(flags);
}
- for (StringPiece part : util::Tokenize(str, '|')) {
+ for (const StringPiece& part : util::Tokenize(str, '|')) {
StringPiece trimmed_part = util::TrimWhitespace(part);
bool flag_set = false;