From 7354997040696dc9741d76cc11176b430b295480 Mon Sep 17 00:00:00 2001 From: CodemodService Bot Date: Thu, 3 Jul 2025 21:00:21 -0700 Subject: [PATCH] Fix CQS signal performance-faster-string-find in xplat/js/react-native-github/packages/react-native/ReactCommon/jsiexecutor/jsireact Reviewed By: dtolnay Differential Revision: D77715183 --- .../ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp b/packages/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp index d44721fd30a..c78c3993f03 100644 --- a/packages/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp +++ b/packages/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp @@ -58,7 +58,7 @@ namespace { // basename_r isn't in all iOS SDKs, so use this simple version instead. std::string simpleBasename(const std::string& path) { - size_t pos = path.rfind("/"); + size_t pos = path.rfind('/'); return (pos != std::string::npos) ? path.substr(pos) : path; }