Merge "Fix clang-tidy performance warnings in system/core." am: 146fd24c4b

am: 8ec85ebdf0

Change-Id: I2593f77fe8347283378b80f237480a71311add6a
This commit is contained in:
Chih-Hung Hsieh 2018-09-18 11:03:59 -07:00 committed by android-build-merger
commit 6b18f29be9

View file

@ -50,7 +50,7 @@ Result<Success> ModaliasHandler::ParseDepCallback(std::vector<std::string>&& arg
}
// Key is striped module name to match names in alias file
std::size_t start = args[0].find_last_of("/");
std::size_t start = args[0].find_last_of('/');
std::size_t end = args[0].find(".ko:");
if ((end - start) <= 1) return Error() << "malformed dependency line";
auto mod_name = args[0].substr(start + 1, (end - start) - 1);