summaryrefslogtreecommitdiff
path: root/simpleperf/event_type.h
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-02-11 14:12:37 -0800
committerChih-Hung Hsieh <chh@google.com>2020-02-11 14:12:37 -0800
commit3c5692007b8f7d0ca15fb6547871487a2fe73953 (patch)
treecbf4057b6e291544cad515e2b8ac0b5733860d43 /simpleperf/event_type.h
parent0e3245fdb39ccf2e8a5364084706ce5d6065c5a0 (diff)
downloadextras-3c5692007b8f7d0ca15fb6547871487a2fe73953.tar.gz
Fix clang-tidy performance-faster-string-find warnings
Bug: 30411878 Test: build with WITH_TIDY=1 Change-Id: I43659675f256c2dcf6b9e9ef91977af5c03c4144
Diffstat (limited to 'simpleperf/event_type.h')
-rw-r--r--simpleperf/event_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/event_type.h b/simpleperf/event_type.h
index d4ffecb7..359438ec 100644
--- a/simpleperf/event_type.h
+++ b/simpleperf/event_type.h
@@ -44,7 +44,7 @@ struct EventType {
}
bool IsPmuEvent() const {
- return name.find("/") != std::string::npos;
+ return name.find('/') != std::string::npos;
}
std::vector<int> GetPmuCpumask();