Skip to content

Commit ff75e73

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-using in xplat/js/react-native-github/packages [B] (#52656)
Summary: Pull Request resolved: #52656 Reviewed By: dtolnay Differential Revision: D78460296
1 parent 20baf2a commit ff75e73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)