88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
{
size_t count;
if (set == nil)
return [self init];
@try {
count = [set count];
} @catch (id e) {
[self release];
@throw e;
}
self = [self initWithCapacity: count];
|
|
|
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
{
size_t count;
if (set == nil)
return [self init];
@try {
count = set.count;
} @catch (id e) {
[self release];
@throw e;
}
self = [self initWithCapacity: count];
|
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
{
size_t count;
if (array == nil)
return self;
@try {
count = [array count];
} @catch (id e) {
[self release];
@throw e;
}
self = [self initWithCapacity: count];
|
|
|
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
{
size_t count;
if (array == nil)
return self;
@try {
count = array.count;
} @catch (id e) {
[self release];
@throw e;
}
self = [self initWithCapacity: count];
|
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
- (instancetype)initWithSerialization: (OFXMLElement *)element
{
self = [self init];
@try {
void *pool = objc_autoreleasePoolPush();
if ((![[element name] isEqual: @"OFSet"] &&
![[element name] isEqual: @"OFMutableSet"]) ||
![[element namespace] isEqual: OF_SERIALIZATION_NS])
@throw [OFInvalidArgumentException exception];
for (OFXMLElement *child in
[element elementsForNamespace: OF_SERIALIZATION_NS]) {
void *pool2 = objc_autoreleasePoolPush();
[_mapTable setObject: (void *)1
|
|
|
|
|
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
- (instancetype)initWithSerialization: (OFXMLElement *)element
{
self = [self init];
@try {
void *pool = objc_autoreleasePoolPush();
if ((![element.name isEqual: @"OFSet"] &&
![element.name isEqual: @"OFMutableSet"]) ||
![element.namespace isEqual: OF_SERIALIZATION_NS])
@throw [OFInvalidArgumentException exception];
for (OFXMLElement *child in
[element elementsForNamespace: OF_SERIALIZATION_NS]) {
void *pool2 = objc_autoreleasePoolPush();
[_mapTable setObject: (void *)1
|