Skip to content

Commit e186f1b

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-using in xplat/js/react-native-github/packages [B] (#52693)
Summary: Pull Request resolved: #52693 Reviewed By: dtolnay Differential Revision: D78494711 fbshipit-source-id: 870e300b29e41aec488926cdf416f246de96514d
1 parent eb2461c commit e186f1b

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/react-native/React/Views/RCTFont.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ + (UIFont *)UIFont:(id)json
205205
UIFontWeightRegular,
206206
doubleValue)
207207

208-
typedef BOOL RCTFontStyle;
208+
using RCTFontStyle = BOOL;
209209
RCT_ENUM_CONVERTER(
210210
RCTFontStyle,
211211
(@{
@@ -216,7 +216,7 @@ + (UIFont *)UIFont:(id)json
216216
NO,
217217
boolValue)
218218

219-
typedef NSDictionary RCTFontVariantDescriptor;
219+
using RCTFontVariantDescriptor = NSDictionary;
220220
+ (RCTFontVariantDescriptor *)RCTFontVariantDescriptor:(id)json
221221
{
222222
static NSDictionary *mapping;

packages/react-native/ReactCommon/cxxreact/CxxModule.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class CxxModule {
5353
class SyncTagType {};
5454

5555
public:
56-
typedef std::function<std::unique_ptr<CxxModule>()> Provider;
56+
using Provider = std::function<std::unique_ptr<CxxModule>()>;
5757

58-
typedef std::function<void(std::vector<folly::dynamic>)> Callback;
58+
using Callback = std::function<void(std::vector<folly::dynamic>)>;
5959

6060
constexpr static AsyncTagType AsyncTag = AsyncTagType();
6161
constexpr static SyncTagType SyncTag = SyncTagType();

packages/react-native/ReactCommon/cxxreact/JsArgumentHelpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ namespace detail {
6868
// only for types compatible with folly::dynamic.
6969
template <typename T>
7070
struct is_dynamic {
71-
typedef typename std::
72-
enable_if<std::is_assignable<folly::dynamic, T>::value, T>::type type;
71+
using type = typename std::
72+
enable_if<std::is_assignable<folly::dynamic, T>::value, T>::type;
7373
};
7474

7575
} // end namespace detail

packages/react-native/ReactCommon/logger/react_native_log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ enum ReactNativeLogLevel {
1414
ReactNativeLogLevelFatal = 4
1515
};
1616

17-
typedef void (*reactnativelogfunctype)(ReactNativeLogLevel, const char*);
17+
using reactnativelogfunctype = void (*)(ReactNativeLogLevel, const char*);
1818

1919
#ifdef __cplusplus
2020
extern "C" {

0 commit comments

Comments
 (0)