Skip to content

Commit 9672c2e

Browse files
zhongwuzwfacebook-github-bot
authored andcommittedJan 23, 2019
Add CF_RETURNS_NOT_RETAINED annotate for Objective-C method which returns Core Foundation object (#23122)
Summary: Changelog: ---------- [iOS][Fixed] - Add CF_RETURNS_NOT_RETAINED annotate for Objective-C method which returns Core Foundation object Pull Request resolved: #23122 Differential Revision: D13781898 Pulled By: cpojer fbshipit-source-id: 5953fa24a3d06766affdcabdec96bd43c062bf1b
1 parent 3b0b7ce commit 9672c2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎Libraries/ART/RCTConvert+ART.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515

1616
@interface RCTConvert (ART)
1717

18-
+ (CGPathRef)CGPath:(id)json;
18+
+ (CGPathRef)CGPath:(id)json CF_RETURNS_NOT_RETAINED;
1919
+ (CTTextAlignment)CTTextAlignment:(id)json;
2020
+ (ARTTextFrame)ARTTextFrame:(id)json;
2121
+ (ARTCGFloatArray)ARTCGFloatArray:(id)json;
2222
+ (ARTBrush *)ARTBrush:(id)json;
2323

2424
+ (CGPoint)CGPoint:(id)json offset:(NSUInteger)offset;
2525
+ (CGRect)CGRect:(id)json offset:(NSUInteger)offset;
26-
+ (CGColorRef)CGColor:(id)json offset:(NSUInteger)offset;
27-
+ (CGGradientRef)CGGradient:(id)json offset:(NSUInteger)offset;
26+
+ (CGColorRef)CGColor:(id)json offset:(NSUInteger)offset CF_RETURNS_NOT_RETAINED;
27+
+ (CGGradientRef)CGGradient:(id)json offset:(NSUInteger)offset CF_RETURNS_NOT_RETAINED;
2828

2929
@end

0 commit comments

Comments
 (0)