From fcc1e191986b81fe8e7c094984206c8b64d29633 Mon Sep 17 00:00:00 2001 From: CodemodService Bot Date: Fri, 11 Jul 2025 09:19:23 -0700 Subject: [PATCH] Fix CQS signal modernize-concat-nested-namespaces in xplat/js/react-native-github/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon Reviewed By: dtolnay Differential Revision: D78146649 --- .../react/runtime/platform/ios/ReactCommon/RCTJscInstance.h | 6 ++---- .../runtime/platform/ios/ReactCommon/RCTJscInstance.mm | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTJscInstance.h b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTJscInstance.h index bdd653287d0..5732d3e41af 100644 --- a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTJscInstance.h +++ b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTJscInstance.h @@ -9,8 +9,7 @@ #import #import -namespace facebook { -namespace react { +namespace facebook::react { class RCTJscInstance : public JSRuntimeFactory { public: @@ -21,5 +20,4 @@ class RCTJscInstance : public JSRuntimeFactory { ~RCTJscInstance(){}; }; -} // namespace react -} // namespace facebook +} // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTJscInstance.mm b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTJscInstance.mm index c56c466909d..06d61e8bb97 100644 --- a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTJscInstance.mm +++ b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTJscInstance.mm @@ -8,8 +8,7 @@ #import "RCTJscInstance.h" #include -namespace facebook { -namespace react { +namespace facebook::react { RCTJscInstance::RCTJscInstance() {} @@ -18,5 +17,4 @@ std::unique_ptr RCTJscInstance::createJSRuntime(std::shared_ptr(jsc::makeJSCRuntime()); } -} // namespace react -} // namespace facebook +} // namespace facebook::react