Differences From Artifact [0d4018a918]:
- File
src/OFMutableSet.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 3296) [annotate] [blame] [check-ins using]
To Artifact [fd9f446d87]:
- File src/OFMutableSet.m — part of check-in [f50d7da785] at 2016-06-05 20:27:27 on branch trunk — Add +[OFMutableSet setWithCapacity:] (user: js, size: 3597) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
74 75 76 77 78 79 80 81 82 83 84 85 86 87 | } - initWithSerialization: (OFXMLElement*)element { return (id)[[OFMutableSet_hashtable alloc] initWithSerialization: element]; } - retain { return self; } - autorelease | > > > > > | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | } - initWithSerialization: (OFXMLElement*)element { return (id)[[OFMutableSet_hashtable alloc] initWithSerialization: element]; } - initWithCapacity: (size_t)capacity { return (id)[[OFMutableSet_hashtable alloc] initWithCapacity: capacity]; } - retain { return self; } - autorelease |
︙ | ︙ | |||
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | + alloc { if (self == [OFMutableSet class]) return (id)&placeholder; return [super alloc]; } - init { if (object_getClass(self) == [OFMutableSet class]) { @try { [self doesNotRecognizeSelector: _cmd]; abort(); } @catch (id e) { [self release]; @throw e; } } return [super init]; } - (void)addObject: (id)object { OF_UNRECOGNIZED_SELECTOR } - (void)removeObject: (id)object | > > > > > > > > > > | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | + alloc { if (self == [OFMutableSet class]) return (id)&placeholder; return [super alloc]; } + (instancetype)setWithCapacity: (size_t)capacity { return [[[self alloc] initWithCapacity: capacity] autorelease]; } - init { if (object_getClass(self) == [OFMutableSet class]) { @try { [self doesNotRecognizeSelector: _cmd]; abort(); } @catch (id e) { [self release]; @throw e; } } return [super init]; } - initWithCapacity: (size_t)capacity { OF_INVALID_INIT_METHOD } - (void)addObject: (id)object { OF_UNRECOGNIZED_SELECTOR } - (void)removeObject: (id)object |
︙ | ︙ |