Use NS_RETURNS_RETAINED macro to save time (#843)

* Use NS_RETURNS_RETAINED macro to save time

* Update changelog and do the thing with the license headers
This commit is contained in:
Adlai Holler
2018-03-21 08:13:09 -07:00
committed by GitHub
parent e954b1045a
commit 2b12654810
61 changed files with 239 additions and 184 deletions

View File

@@ -172,7 +172,7 @@ NSAttributedString *ASCleanseAttributedStringOfCoreTextAttributes(NSAttributedSt
#pragma mark -
@implementation NSParagraphStyle (ASTextKitCoreTextAdditions)
+ (instancetype)paragraphStyleWithCTParagraphStyle:(CTParagraphStyleRef)coreTextParagraphStyle;
+ (instancetype)paragraphStyleWithCTParagraphStyle:(CTParagraphStyleRef)coreTextParagraphStyle NS_RETURNS_RETAINED
{
NSMutableParagraphStyle *newParagraphStyle = [[NSMutableParagraphStyle alloc] init];