Differences From Artifact [de67b84ef2]:
- File
src/OFFile.m
— part of check-in
[139591afe1]
at
2009-04-19 20:34:38
on branch trunk
— Use isa instead of [self class].
Since we don't use Object anymore and define isa in OFObject, we can
rely on it. (user: js, size: 2939) [annotate] [blame] [check-ins using]
To Artifact [164c881033]:
- File src/OFFile.m — part of check-in [d87df02e8b] at 2009-04-21 17:16:23 on branch trunk — The if ((self = [super init])) construct isn't needed anymore. (user: js, size: 2923) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
78 79 80 81 82 83 84 | } - initWithPath: (const char*)path andMode: (const char*)mode { Class c; | | > | | | | | | | | | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | } - initWithPath: (const char*)path andMode: (const char*)mode { Class c; self = [super init]; if ((fp = fopen(path, mode)) == NULL) { c = isa; [super free]; @throw [OFOpenFileFailedException newWithClass: c andPath: path andMode: mode]; } return self; } - free { fclose(fp); |
︙ | ︙ |