Fix clang-tidy warnings in bootable/recovery.
* Use const reference type for read-only parameters. Bug: 30407689 * Use faster overloaded string find function. Bug: 30411878 * Add parentheses around macro parameters. Bug: 28705665 Test: build with WITH_TIDY=1 Change-Id: I4e8e5748bfa4ae89871f1fb5fa4624d372530d75
This commit is contained in:
@@ -65,7 +65,7 @@ static bool file_cmp(std::string& f1, std::string& f2) {
|
||||
return c1 == c2;
|
||||
}
|
||||
|
||||
static std::string from_testdata_base(const std::string fname) {
|
||||
static std::string from_testdata_base(const std::string& fname) {
|
||||
return android::base::StringPrintf("%s%s%s/%s",
|
||||
&DATA_PATH[0],
|
||||
&NATIVE_TEST_PATH[0],
|
||||
|
||||
Reference in New Issue
Block a user