mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix CQS signal modernize-use-nullptr in xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager (#51879)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51879 Reviewed By: dtolnay Differential Revision: D76127542 fbshipit-source-id: 332c936dcd26c1659762069f503ec2e835073ea5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ae40886a0d
commit
a8db9c2f2e
+1
-1
@@ -144,7 +144,7 @@ inline static NSURLRequest *NSURLRequestFromImageSource(const facebook::react::I
|
||||
for (const auto &header : imageSource.headers) {
|
||||
NSString *key = [NSString stringWithUTF8String:header.first.c_str()];
|
||||
NSString *value = [NSString stringWithUTF8String:header.second.c_str()];
|
||||
if (key != NULL && value != NULL) {
|
||||
if (key != nullptr && value != nullptr) {
|
||||
[request setValue:value forHTTPHeaderField:key];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user