From deeba23f3dd6abcd23673b402985b8047a96e361 Mon Sep 17 00:00:00 2001 From: CodemodService Bot Date: Fri, 4 Jul 2025 02:15:27 -0700 Subject: [PATCH] Fix CQS signal performance-faster-string-find in xplat/js/react-native-github/packages/react-native/ReactCommon/react/runtime Reviewed By: javache Differential Revision: D77713594 --- .../react-native/ReactCommon/react/runtime/ReactInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp b/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp index 29d2910fe7aa..b4c8b1b50fea 100644 --- a/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp +++ b/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp @@ -200,7 +200,7 @@ namespace { // Copied from JSIExecutor.cpp // 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; }