ObjFW  Check-in [6f18cbc1ea]

Overview
Comment:Fix missing @try.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6f18cbc1eac437eeaad3d8edfe7e494fd6ef73cb32a95a93aed0432b24e2e457
User & Date: js on 2011-09-11 00:06:10
Other Links: manifest | tags
Context
2011-09-11
00:09
Remove blocks support in OFXMLParser as it was useless. check-in: 9975294bb1 user: js tags: trunk
00:06
Fix missing @try. check-in: 6f18cbc1ea user: js tags: trunk
00:03
Make use of the fact that -[retain] and -[release] must not throw. check-in: 74eeea199c user: js tags: trunk
Changes

Modified src/exceptions/OFLinkFailedException.m from [19f41737ee] to [77f18c4a57].

44
45
46
47
48
49
50

51
52
53




54
55
56
57
58
59
60

-   initWithClass: (Class)class_
       sourcePath: (OFString*)src
  destinationPath: (OFString*)dest
{
	self = [super initWithClass: class_];


	sourcePath = [src copy];
	destinationPath = [dest copy];
	errNo = GET_ERRNO;





	return self;
}

- (void)dealloc
{
	[sourcePath release];







>
|
|
|
>
>
>
>







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

-   initWithClass: (Class)class_
       sourcePath: (OFString*)src
  destinationPath: (OFString*)dest
{
	self = [super initWithClass: class_];

	@try {
		sourcePath = [src copy];
		destinationPath = [dest copy];
		errNo = GET_ERRNO;
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (void)dealloc
{
	[sourcePath release];