ObjFW  Diff

Differences From Artifact [249698b888]:

To Artifact [276359729c]:


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

@implementation OHGameControllerEmulatedTriggerButton
- (instancetype)initWithName: (OFString *)name
{
	OF_INVALID_INIT_METHOD
}

- (instancetype)initWithAxis: (OHGameControllerAxis *)axis
{
	void *pool = objc_autoreleasePoolPush();
	OFString *name;

	@try {
		name = axis.name;
	} @catch (id e) {
		[self release];
		@throw e;
	}

	self = [super initWithName: name];

	objc_autoreleasePoolPop(pool);

	_axis = [axis retain];

	return self;
}

- (void)dealloc







|
<
<
<
|
<
<
<
<
<
<
|

<
<







24
25
26
27
28
29
30
31



32






33
34


35
36
37
38
39
40
41

@implementation OHGameControllerEmulatedTriggerButton
- (instancetype)initWithName: (OFString *)name
{
	OF_INVALID_INIT_METHOD
}

- (instancetype)initWithName: (OFString *)name



			axis: (OHGameControllerAxis *)axis






{
	self = [super initWithName: name];



	_axis = [axis retain];

	return self;
}

- (void)dealloc