| commit | 8595283cec8608cd7bc383e6ffe5203772975d94 | [log] [tgz] |
|---|---|---|
| author | Elliott Hughes <enh@google.com> | Wed Oct 07 15:59:35 2015 -0700 |
| committer | Elliott Hughes <enh@google.com> | Wed Oct 07 16:11:17 2015 -0700 |
| tree | f83372d69a901031b44d501dfa5d1b57cb6e8eea | |
| parent | 17b5d9cb74fcd240bac793eec7b7ee860d3188b0 [diff] [blame] |
Use const auto&/auto&& in adb. Change-Id: I74a7e511302e15e207906f572d181634e0ed5604
diff --git a/adb.cpp b/adb.cpp index 3dcf282..1eb3a3c 100644 --- a/adb.cpp +++ b/adb.cpp
@@ -245,7 +245,7 @@ if (pieces.size() > 2) { const std::string& props = pieces[2]; - for (auto& prop : android::base::Split(props, ";")) { + for (const auto& prop : android::base::Split(props, ";")) { // The list of properties was traditionally ;-terminated rather than ;-separated. if (prop.empty()) continue;