Fix CQS signal modernize-use-using in xplat/js/react-native-github/packages [B] (#52693)

Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52693

Reviewed By: dtolnay

Differential Revision: D78494711
This commit is contained in:
CodemodService Bot
2025-07-18 06:55:06 -07:00
committed by Facebook GitHub Bot
parent 5cda3065ce
commit 192cff271b
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -205,7 +205,7 @@ RCT_ENUM_CONVERTER(
UIFontWeightRegular,
doubleValue)
typedef BOOL RCTFontStyle;
using RCTFontStyle = BOOL;
RCT_ENUM_CONVERTER(
RCTFontStyle,
(@{
@@ -216,7 +216,7 @@ RCT_ENUM_CONVERTER(
NO,
boolValue)
typedef NSDictionary RCTFontVariantDescriptor;
using RCTFontVariantDescriptor = NSDictionary;
+ (RCTFontVariantDescriptor *)RCTFontVariantDescriptor:(id)json
{
static NSDictionary *mapping;
@@ -53,9 +53,9 @@ class CxxModule {
class SyncTagType {};
public:
typedef std::function<std::unique_ptr<CxxModule>()> Provider;
using Provider = std::function<std::unique_ptr<CxxModule>()>;
typedef std::function<void(std::vector<folly::dynamic>)> Callback;
using Callback = std::function<void(std::vector<folly::dynamic>)>;
constexpr static AsyncTagType AsyncTag = AsyncTagType();
constexpr static SyncTagType SyncTag = SyncTagType();
@@ -68,8 +68,8 @@ namespace detail {
// only for types compatible with folly::dynamic.
template <typename T>
struct is_dynamic {
typedef typename std::
enable_if<std::is_assignable<folly::dynamic, T>::value, T>::type type;
using type = typename std::
enable_if<std::is_assignable<folly::dynamic, T>::value, T>::type;
};
} // end namespace detail
@@ -14,7 +14,7 @@ enum ReactNativeLogLevel {
ReactNativeLogLevelFatal = 4
};
typedef void (*reactnativelogfunctype)(ReactNativeLogLevel, const char*);
using reactnativelogfunctype = void (*)(ReactNativeLogLevel, const char*);
#ifdef __cplusplus
extern "C" {