Merge "Fix clang-tidy performance warnings in fs_mgr."

This commit is contained in:
Chih-hung Hsieh 2016-07-28 17:13:54 +00:00 committed by Gerrit Code Review
commit 44c909d467
1 changed files with 1 additions and 1 deletions

View File

@ -858,7 +858,7 @@ static void update_verity_table_blk_device(char *blk_device, char **table)
std::string result, word;
auto tokens = android::base::Split(*table, " ");
for (const auto token : tokens) {
for (const auto& token : tokens) {
if (android::base::StartsWith(token, "/dev/block/") &&
android::base::StartsWith(blk_device, token.c_str())) {
word = blk_device;