commit | 54752d0c044eee1f15604ed5da49e62e0f9ec973 | [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 | fc0fbd0c9d32b38e7b46ba4f7c48d201ae2cf6a3 [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;