- xplat sonar (#5091)

Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/5091

https://developer.apple.com/documentation/foundation/nsstring/1497289-stringwithcstring

[Changelog]:[Fixed] Remove usage of deprecated stringWithCString function

Reviewed By: lblasa

Differential Revision: D48692608

fbshipit-source-id: 683d6f8656fe6183cb02faab6261f1b6a61cc3a2
This commit is contained in:
Adam Cmiel
2023-09-06 13:09:09 -07:00
committed by Facebook GitHub Bot
parent 0f7e9a0888
commit a64d493875

View File

@@ -131,7 +131,7 @@ static NSString* const UNKNOWN_BLOB_LABEL_FORMAT = @"{%d-byte %@ blob}";
return @{@"type" : @"null"};
} else if ([object isKindOfClass:[NSNumber class]]) {
NSNumber* number = (NSNumber*)object;
NSString* type = [NSString stringWithCString:[number objCType]];
NSString* type = [NSString stringWithUTF8String:[number objCType]];
if ([type isEqualToString:@"i"]) {
return @{@"type" : @"integer", @"value" : number};