Skip to content

Commit d82680b

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal. Id] 18192549 -- performance-faster-string-find in fbcode/kineto/libkineto/src
Reviewed By: sraikund16 Differential Revision: D73243998 fbshipit-source-id: cc21cd2304c605df604c6ec71a9388a30e9e12d7
1 parent e44f609 commit d82680b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libkineto/src/AbstractConfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static vector<string> split(const string& s, char delim) {
6565

6666
// Remove a trailing comment.
6767
static inline string stripComment(const string& s) {
68-
std::size_t pos = s.find("#");
68+
std::size_t pos = s.find('#');
6969
return s.substr(0, pos);
7070
}
7171

0 commit comments

Comments
 (0)