From 4ff3eb7a305d040e9c32e2504f2932cdc2c57ebe Mon Sep 17 00:00:00 2001 From: CodemodService Bot Date: Mon, 14 Jul 2025 02:32:19 -0700 Subject: [PATCH] Fix CQS signal performance-faster-string-find in xplat/js/react-native-github/packages Reviewed By: javache Differential Revision: D78252727 --- .../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; }