Skip to content

Commit b676321

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-using in xplat/js/react-native-github/packages
Reviewed By: javache Differential Revision: D78402918
1 parent 4edc33e commit b676321

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
@@ -710,13 +710,13 @@ BOOL RCTIsGzippedData(NSData *__nullable data)
710710

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

713-
typedef int (*DeflateInit2_)(z_streamp, int, int, int, int, int, const char *, int);
713+
using DeflateInit2_ = int (*)(z_streamp, int, int, int, int, int, const char *, int);
714714
DeflateInit2_ deflateInit2_ = (DeflateInit2_)dlsym(libz, "deflateInit2_");
715715

716-
typedef int (*Deflate)(z_streamp, int);
716+
using Deflate = int (*)(z_streamp, int);
717717
Deflate deflate = (Deflate)dlsym(libz, "deflate");
718718

719-
typedef int (*DeflateEnd)(z_streamp);
719+
using DeflateEnd = int (*)(z_streamp);
720720
DeflateEnd deflateEnd = (DeflateEnd)dlsym(libz, "deflateEnd");
721721

722722
z_stream stream;

0 commit comments

Comments
 (0)