From a20b02efbf73a14e336f59851544faa22d92bc9c Mon Sep 17 00:00:00 2001 From: generatedunixname89002005287564 Date: Fri, 4 Apr 2025 18:24:46 -0700 Subject: [PATCH] Fix CQS signal. Id] 32912214 -- modernize-use-nullptr in xplat/js/react-native-github/packages/react-native/ReactCommon/logger Reviewed By: dtolnay Differential Revision: D72449910 fbshipit-source-id: d246d83f19b374c5fe1260ce8bbe974ccd7ffa15 --- packages/react-native/ReactCommon/logger/react_native_log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/logger/react_native_log.cpp b/packages/react-native/ReactCommon/logger/react_native_log.cpp index 6f032a06b28..a15ff7cd587 100644 --- a/packages/react-native/ReactCommon/logger/react_native_log.cpp +++ b/packages/react-native/ReactCommon/logger/react_native_log.cpp @@ -8,7 +8,7 @@ #include "react_native_log.h" #include -static reactnativelogfunctype _reactnativelogfunc = NULL; +static reactnativelogfunctype _reactnativelogfunc = nullptr; void set_react_native_logfunc(reactnativelogfunctype newlogfunc) { _reactnativelogfunc = newlogfunc; @@ -27,7 +27,7 @@ void react_native_log_fatal(const char* message) { } void _react_native_log(ReactNativeLogLevel level, const char* message) { - if (_reactnativelogfunc == NULL) { + if (_reactnativelogfunc == nullptr) { _react_native_log_default(level, message); } else { _reactnativelogfunc(level, message);