commit | 65fe2516b402ed8903f2ce39a86fa0bdc2b263a6 | [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 | 95bcc5c551c64244c7526454546c1bcc4a34909c | |
parent | 1407b28628afec6c06eb6cb818f800083df668e1 [diff] [blame] |
Use const auto&/auto&& in adb. Change-Id: I74a7e511302e15e207906f572d181634e0ed5604
diff --git a/adb/adb.cpp b/adb/adb.cpp index 3dcf282..1eb3a3c 100644 --- a/adb/adb.cpp +++ b/adb/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;