Browse Source

IOS-1673 Use instancetype

IOS-1673
Dirk Zimmermann 2 years ago
parent
commit
4f76c0baf7
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      pEpObjCAdapter/Extensions/NSArray+Engine.h
  2. +3
    -3
      pEpObjCAdapter/Extensions/NSArray+Engine.m

+ 3
- 3
pEpObjCAdapter/Extensions/NSArray+Engine.h View File

@ -18,10 +18,10 @@ NS_ASSUME_NONNULL_BEGIN
@interface NSArray (Engine)
+ (NSArray *)arrayFromStringlist:(stringlist_t *)stringList;
+ (instancetype)arrayFromStringlist:(stringlist_t *)stringList;
+ (NSArray<PEPIdentity *> *)arrayFromIdentityList:(identity_list *)identityList;
+ (NSArray *)arrayFromStringPairlist:(stringpair_list_t * _Nonnull)stringPairList;
+ (NSArray *)arrayFromBloblist:(bloblist_t * _Nonnull)blobList;
+ (instancetype)arrayFromStringPairlist:(stringpair_list_t * _Nonnull)stringPairList;
+ (instancetype)arrayFromBloblist:(bloblist_t * _Nonnull)blobList;
- (stringlist_t * _Nullable)toStringList;


+ 3
- 3
pEpObjCAdapter/Extensions/NSArray+Engine.m View File

@ -16,7 +16,7 @@
@implementation NSArray (Engine)
+ (NSArray * _Nonnull)arrayFromStringlist:(stringlist_t * _Nonnull)stringList
+ (instancetype)arrayFromStringlist:(stringlist_t * _Nonnull)stringList
{
NSMutableArray *array = [NSMutableArray array];
@ -38,7 +38,7 @@
return array;
}
+ (NSArray *)arrayFromStringPairlist:(stringpair_list_t * _Nonnull)stringPairList
+ (instancetype)arrayFromStringPairlist:(stringpair_list_t * _Nonnull)stringPairList
{
NSMutableArray *array = [NSMutableArray array];
@ -52,7 +52,7 @@
return array;
}
+ (NSArray *)arrayFromBloblist:(bloblist_t * _Nonnull)blobList
+ (instancetype)arrayFromBloblist:(bloblist_t * _Nonnull)blobList
{
NSMutableArray *array = [NSMutableArray array];


Loading…
Cancel
Save