Skip to content

Commit b855025

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal performance-faster-string-find in xplat/js/react-native-github/packages/react-native/ReactCommon/react/runtime (#52568)
Summary: Pull Request resolved: #52568 Reviewed By: dtolnay Differential Revision: D78146248 fbshipit-source-id: 8b93b09d46832d6e67c1ded075eb99b9bdd1f0e2
1 parent 5dc3e18 commit b855025

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ namespace {
200200
// Copied from JSIExecutor.cpp
201201
// basename_r isn't in all iOS SDKs, so use this simple version instead.
202202
std::string simpleBasename(const std::string& path) {
203-
size_t pos = path.rfind("/");
203+
size_t pos = path.rfind('/');
204204
return (pos != std::string::npos) ? path.substr(pos) : path;
205205
}
206206

0 commit comments

Comments
 (0)