Skip to content

Commit bb0c370

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal performance-faster-string-find in xplat/js/react-native-github/packages (#52579)
Summary: Pull Request resolved: #52579 Reviewed By: javache Differential Revision: D78252727 fbshipit-source-id: 97c746e6d57901f4995dd733c51e2b33e1f44a17
1 parent 8524c13 commit bb0c370

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace {
5858

5959
// basename_r isn't in all iOS SDKs, so use this simple version instead.
6060
std::string simpleBasename(const std::string& path) {
61-
size_t pos = path.rfind("/");
61+
size_t pos = path.rfind('/');
6262
return (pos != std::string::npos) ? path.substr(pos) : path;
6363
}
6464

0 commit comments

Comments
 (0)