Comment: | Make use of the fact that -[retain] and -[release] must not throw. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
74eeea199c6e248267e1bc4addef7048 |
User & Date: | js on 2011-09-11 00:03:44 |
Other Links: | manifest | tags |
2011-09-11
| ||
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 | |
2011-09-10
| ||
23:54 | Make use of the fact that -[retain] and -[release] must not throw. check-in: 3687c35784 user: js tags: trunk | |
Modified src/exceptions/OFAcceptFailedException.m from [ea651db91b] to [dae33a0f3a].
︙ | ︙ | |||
41 42 43 44 45 46 47 | } - initWithClass: (Class)class_ socket: (OFTCPSocket*)socket_ { self = [super initWithClass: class_]; | < | | < < < < | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | } - initWithClass: (Class)class_ socket: (OFTCPSocket*)socket_ { self = [super initWithClass: class_]; socket = [socket_ retain]; errNo = GET_SOCK_ERRNO; return self; } - (void)dealloc { [socket release]; |
︙ | ︙ |
Modified src/exceptions/OFAlreadyConnectedException.m from [48d0714422] to [aff1092b87].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ socket: (OFTCPSocket*)socket_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ socket: (OFTCPSocket*)socket_ { self = [super initWithClass: class_]; socket = [socket_ retain]; return self; } - (void)dealloc { [socket release]; |
︙ | ︙ |
Modified src/exceptions/OFConditionBroadcastFailedException.m from [e42b4e7288] to [f825f144e3].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; condition = [condition_ retain]; return self; } - (void)dealloc { [condition release]; |
︙ | ︙ |
Modified src/exceptions/OFConditionSignalFailedException.m from [d5c9084025] to [c77808a760].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; condition = [condition_ retain]; return self; } - (void)dealloc { [condition release]; |
︙ | ︙ |
Modified src/exceptions/OFConditionStillWaitingException.m from [842bbabb44] to [3e5fe446f3].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; condition = [condition_ retain]; return self; } - (void)dealloc { [condition release]; |
︙ | ︙ |
Modified src/exceptions/OFConditionWaitFailedException.m from [8a702fc8e7] to [8456d86d00].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ condition: (OFCondition*)condition_ { self = [super initWithClass: class_]; condition = [condition_ retain]; return self; } - (void)dealloc { [condition release]; |
︙ | ︙ |
Modified src/exceptions/OFEnumerationMutationException.m from [acf0fdeae1] to [f7c21afbd0].
︙ | ︙ | |||
38 39 40 41 42 43 44 | } - initWithClass: (Class)class_ object: (id)object_ { self = [super initWithClass: class_]; | < | < < < < | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | } - initWithClass: (Class)class_ object: (id)object_ { self = [super initWithClass: class_]; object = [object_ retain]; return self; } - (void)dealloc { [object release]; |
︙ | ︙ |
Modified src/exceptions/OFHTTPRequestFailedException.m from [f4379dee3a] to [d4466ea6fb].
︙ | ︙ | |||
43 44 45 46 47 48 49 | - initWithClass: (Class)class_ HTTPRequest: (OFHTTPRequest*)request result: (OFHTTPRequestResult*)result_ { self = [super initWithClass: class_]; | < | | < < < < | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | - initWithClass: (Class)class_ HTTPRequest: (OFHTTPRequest*)request result: (OFHTTPRequestResult*)result_ { self = [super initWithClass: class_]; HTTPRequest = [request retain]; result = [result_ retain]; return self; } - (void)dealloc { [HTTPRequest release]; |
︙ | ︙ |
Modified src/exceptions/OFHashAlreadyCalculatedException.m from [7c21aa85d9] to [468e6a75ff].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ hash: (OFHash*)hash { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ hash: (OFHash*)hash { self = [super initWithClass: class_]; hashObject = [hash retain]; return self; } - (void)dealloc { [hashObject release]; |
︙ | ︙ |
Modified src/exceptions/OFListenFailedException.m from [050e526b82] to [7907901ed0].
︙ | ︙ | |||
44 45 46 47 48 49 50 | - initWithClass: (Class)class_ socket: (OFTCPSocket*)socket_ backLog: (int)backlog { self = [super initWithClass: class_]; | < | | | < < < < | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - initWithClass: (Class)class_ socket: (OFTCPSocket*)socket_ backLog: (int)backlog { self = [super initWithClass: class_]; socket = [socket_ retain]; backLog = backlog; errNo = GET_SOCK_ERRNO; return self; } - (void)dealloc { [socket release]; |
︙ | ︙ |
Modified src/exceptions/OFMalformedXMLException.m from [4aa8a7f2e3] to [e9017c6da2].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ parser: (OFXMLParser*)parser_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ parser: (OFXMLParser*)parser_ { self = [super initWithClass: class_]; parser = [parser_ retain]; return self; } - (void)dealloc { [parser release]; |
︙ | ︙ |
Modified src/exceptions/OFMutexLockFailedException.m from [6cdc6df2bc] to [cfc2a2c3db].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ mutex: (OFMutex*)mutex_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ mutex: (OFMutex*)mutex_ { self = [super initWithClass: class_]; mutex = [mutex_ retain]; return self; } - (void)dealloc { [mutex release]; |
︙ | ︙ |
Modified src/exceptions/OFMutexStillLockedException.m from [149190a6c2] to [2f49017fed].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ mutex: (OFMutex*)mutex_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ mutex: (OFMutex*)mutex_ { self = [super initWithClass: class_]; mutex = [mutex_ retain]; return self; } - (void)dealloc { [mutex release]; |
︙ | ︙ |
Modified src/exceptions/OFMutexUnlockFailedException.m from [fb91526d89] to [6b04031efb].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ mutex: (OFMutex*)mutex_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ mutex: (OFMutex*)mutex_ { self = [super initWithClass: class_]; mutex = [mutex_ retain]; return self; } - (void)dealloc { [mutex release]; |
︙ | ︙ |
Modified src/exceptions/OFNotConnectedException.m from [2f7d4a9cb8] to [3cf49774fa].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ socket: (OFStreamSocket*)socket_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ socket: (OFStreamSocket*)socket_ { self = [super initWithClass: class_]; socket = [socket_ retain]; return self; } - (void)dealloc { [socket release]; |
︙ | ︙ |
Modified src/exceptions/OFReadOrWriteFailedException.m from [fdcd27a313] to [274c6b9632].
︙ | ︙ | |||
44 45 46 47 48 49 50 | - initWithClass: (Class)class_ stream: (OFStream*)stream_ requestedLength: (size_t)length { self = [super initWithClass: class_]; | < | | | | | | < < < | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - initWithClass: (Class)class_ stream: (OFStream*)stream_ requestedLength: (size_t)length { self = [super initWithClass: class_]; stream = [stream_ retain]; requestedLength = length; if ([class_ isSubclassOfClass: [OFStreamSocket class]]) errNo = GET_SOCK_ERRNO; else errNo = GET_ERRNO; return self; } - (void)dealloc { [stream release]; |
︙ | ︙ |
Modified src/exceptions/OFSeekFailedException.m from [7b62503b45] to [5afb1ec110].
︙ | ︙ | |||
47 48 49 50 51 52 53 | - initWithClass: (Class)class_ stream: (OFSeekableStream*)stream_ offset: (off_t)offset_ whence: (int)whence_ { self = [super initWithClass: class_]; | < | | | | < < < < | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - initWithClass: (Class)class_ stream: (OFSeekableStream*)stream_ offset: (off_t)offset_ whence: (int)whence_ { self = [super initWithClass: class_]; stream = [stream_ retain]; offset = offset_; whence = whence_; errNo = GET_ERRNO; return self; } - (void)dealloc { [stream release]; |
︙ | ︙ |
Modified src/exceptions/OFSetOptionFailedException.m from [34a2e0a98f] to [8350b08e96].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ stream: (OFStream*)stream_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ stream: (OFStream*)stream_ { self = [super initWithClass: class_]; stream = [stream_ retain]; return self; } - (void)dealloc { [stream release]; |
︙ | ︙ |
Modified src/exceptions/OFSymlinkFailedException.m from [6e3a78b838] to [947e43bc5f].
︙ | ︙ | |||
44 45 46 47 48 49 50 | - initWithClass: (Class)class_ sourcePath: (OFString*)src destinationPath: (OFString*)dest { self = [super initWithClass: class_]; | > | | | > > > > | 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]; |
︙ | ︙ |
Modified src/exceptions/OFThreadJoinFailedException.m from [cef37d7029] to [6b0a958bc3].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ thread: (OFThread*)thread_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ thread: (OFThread*)thread_ { self = [super initWithClass: class_]; thread = [thread_ retain]; return self; } - (void)dealloc { [thread release]; |
︙ | ︙ |
Modified src/exceptions/OFThreadStartFailedException.m from [187fa112b5] to [9afd364fa9].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ thread: (OFThread*)thread_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ thread: (OFThread*)thread_ { self = [super initWithClass: class_]; thread = [thread_ retain]; return self; } - (void)dealloc { [thread release]; |
︙ | ︙ |
Modified src/exceptions/OFThreadStillRunningException.m from [b9155e70de] to [58927c8f24].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - initWithClass: (Class)class_ thread: (OFThread*)thread_ { self = [super initWithClass: class_]; | < | < < < < | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | } - initWithClass: (Class)class_ thread: (OFThread*)thread_ { self = [super initWithClass: class_]; thread = [thread_ retain]; return self; } - (void)dealloc { [thread release]; |
︙ | ︙ |