mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Merge pull request #54 from triplef/fix-generics
Fix generics definition of NSMutableArray and NSMutableOrderedSet
This commit is contained in:
commit
4be70d0802
2 changed files with 2 additions and 2 deletions
|
@ -301,7 +301,7 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, GS_GENERIC_TYPE(ElementT), NSUInteger,
|
|||
@end
|
||||
|
||||
|
||||
@interface GS_GENERIC_CLASS(NSMutableArray, ElementT) : NSArray
|
||||
@interface GS_GENERIC_CLASS(NSMutableArray, ElementT) : GS_GENERIC_CLASS(NSArray, ElementT)
|
||||
|
||||
+ (instancetype) arrayWithCapacity: (NSUInteger)numItems;
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ extern "C" {
|
|||
@end
|
||||
|
||||
// Mutable Ordered Set
|
||||
@interface GS_GENERIC_CLASS(NSMutableOrderedSet, __covariant ElementT) : NSOrderedSet
|
||||
@interface GS_GENERIC_CLASS(NSMutableOrderedSet, ElementT) : GS_GENERIC_CLASS(NSOrderedSet, ElementT)
|
||||
// Creating a Mutable Ordered Set
|
||||
+ (instancetype)orderedSetWithCapacity: (NSUInteger)capacity;
|
||||
- (instancetype)initWithCapacity: (NSUInteger)capacity;
|
||||
|
|
Loading…
Reference in a new issue