Fix clang-tidy perfomrance warnings.
Change-Id: Ibf3d32a5ba1cb70158d857be3d20aa3d1a870341
Test: build with WITH_TIDY=1
diff --git a/tests/gtest_main.cpp b/tests/gtest_main.cpp
index 5f28321..227b6d1 100644
--- a/tests/gtest_main.cpp
+++ b/tests/gtest_main.cpp
@@ -1065,7 +1065,7 @@
gtest_filter_str = "-bionic_selftest*";
} else {
// 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*";
} else {
gtest_filter_str += ":-bionic_selftest*";