Fix clang-tidy perfomrance warnings.

Change-Id: Ibf3d32a5ba1cb70158d857be3d20aa3d1a870341
Test: build with WITH_TIDY=1
This commit is contained in:
wy 2017-05-10 15:21:13 -07:00
parent a93fcd0394
commit 828b9e162f
1 changed files with 1 additions and 1 deletions

View File

@ -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*";