summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceUtils.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-12-17 14:17:57 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-17 14:17:57 -0800
commit2296036a400e77572c0e346db1f499438d5196d5 (patch)
treea1127bee78079c4cd2f46af36df179da3cdf36cf /tools/aapt2/ResourceUtils.cpp
parent9020a7cd30b1dc2feb247c519faf67c77d7601b7 (diff)
parent7adb73f332bfb4bf9c506ee1a3261c0fb20a693c (diff)
Merge "Fix performance-for-range-copy warnings" am: bc29242288
am: 7adb73f332 Change-Id: I0ab1a28f5490f96bc8b08f073d364a01ff2f20df
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 82d9e041b41a..99420de47fca 100644
--- a/tools/aapt2/ResourceUtils.cpp
+++ b/tools/aapt2/ResourceUtils.cpp
@@ -360,7 +360,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;