Fix clang-tidy perfomrance warnings.
Change-Id: Ibf3d32a5ba1cb70158d857be3d20aa3d1a870341 Test: build with WITH_TIDY=1
This commit is contained in:
parent
a93fcd0394
commit
828b9e162f
|
@ -1065,7 +1065,7 @@ static bool PickOptions(std::vector<char*>& args, IsolationTestOptions& options)
|
||||||
gtest_filter_str = "-bionic_selftest*";
|
gtest_filter_str = "-bionic_selftest*";
|
||||||
} else {
|
} else {
|
||||||
// Find if '-' for NEGATIVE_PATTERNS exists.
|
// Find if '-' for NEGATIVE_PATTERNS exists.
|
||||||
if (gtest_filter_str.find("-") != std::string::npos) {
|
if (gtest_filter_str.find('-') != std::string::npos) {
|
||||||
gtest_filter_str += ":bionic_selftest*";
|
gtest_filter_str += ":bionic_selftest*";
|
||||||
} else {
|
} else {
|
||||||
gtest_filter_str += ":-bionic_selftest*";
|
gtest_filter_str += ":-bionic_selftest*";
|
||||||
|
|
Loading…
Reference in New Issue