ObjFW  Diff

Differences From Artifact [e134f53095]:

To Artifact [624c31369c]:


214
215
216
217
218
219
220
221

222
223
224
225
226


227
228
229
230
231
232
233
214
215
216
217
218
219
220

221
222
223
224
225
226
227
228
229
230
231
232
233
234
235







-
+





+
+







		keys = keys_.objects;
	} @catch (id e) {
		[self release];
		@throw e;
	}

	@try {
		return [self initWithObjects: objects
		self = [self initWithObjects: objects
				     forKeys: keys
				       count: count];
	} @finally {
		objc_autoreleasePoolPop(pool);
	}

	return self;
}

- (instancetype)initWithObject: (id)object forKey: (id)key
{
	@try {
		if (key == nil || object == nil)
			@throw [OFInvalidArgumentException exception];
332
333
334
335
336
337
338
339

340
341
342
343
344
345


346
347
348
349
350
351
352
334
335
336
337
338
339
340

341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356







-
+






+
+







		OFFreeMemory(keys);

		[self release];
		@throw e;
	}

	@try {
		return [self initWithObjects: objects
		self = [self initWithObjects: objects
				     forKeys: keys
				       count: count];
	} @finally {
		OFFreeMemory(objects);
		OFFreeMemory(keys);
	}

	return self;
}

- (id)objectForKey: (id)key
{
	OF_UNRECOGNIZED_SELECTOR
}