summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceUtils.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/ResourceUtils.cpp
parent1e41ae605da556761951814030c0a9c47f89314e (diff)
parentbc292422885b64d369c3420e1eb55a039dfdeeec (diff)
Merge "Fix performance-for-range-copy warnings"
am: bc29242288 Change-Id: I96e7ca53f2878fd9f75ac14999a02a96a96bb93e
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;