Skip to content

Commit 2ae5a74

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-using in xplat/js/react-native-github/packages (facebook#53661)
Summary: Pull Request resolved: facebook#53661 Reviewed By: javache Differential Revision: D81764229 fbshipit-source-id: 617716ddb5cf17d41a4927c3a6cce6074278d8b0
1 parent 3d4a4ca commit 2ae5a74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react-native/Libraries/TypeSafety/RCTConvertHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ template <typename T>
6767
facebook::react::LazyVector<T> RCTBridgingToVec(id value, T (^ctor)(id element))
6868
{
6969
NSArray *array = RCTBridgingToArray(value);
70-
typedef typename facebook::react::LazyVector<T>::size_type _size_t;
70+
using _size_t = typename facebook::react::LazyVector<T>::size_type;
7171
_size_t size = static_cast<_size_t>(array.count);
7272
return facebook::react::LazyVector<T>::fromUnsafeRawValue(array, size, ctor);
7373
}

packages/react-native/React/Base/RCTUtils.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,13 +721,13 @@ BOOL RCTIsGzippedData(NSData *__nullable data)
721721

722722
void *libz = dlopen("/usr/lib/libz.dylib", RTLD_LAZY);
723723

724-
typedef int (*DeflateInit2_)(z_streamp, int, int, int, int, int, const char *, int);
724+
using DeflateInit2_ = int (*)(z_streamp, int, int, int, int, int, const char *, int);
725725
DeflateInit2_ deflateInit2_ = (DeflateInit2_)dlsym(libz, "deflateInit2_");
726726

727-
typedef int (*Deflate)(z_streamp, int);
727+
using Deflate = int (*)(z_streamp, int);
728728
Deflate deflate = (Deflate)dlsym(libz, "deflate");
729729

730-
typedef int (*DeflateEnd)(z_streamp);
730+
using DeflateEnd = int (*)(z_streamp);
731731
DeflateEnd deflateEnd = (DeflateEnd)dlsym(libz, "deflateEnd");
732732

733733
z_stream stream;

0 commit comments

Comments
 (0)