Differences From Artifact [c1acdcd0f7]:
- File src/exceptions/OFChangeOwnerFailedException.m — part of check-in [cc4cb0d824] at 2017-05-02 21:10:33 on branch trunk — exceptions: Add nullability specifiers (user: js, size: 2005) [annotate] [blame] [check-ins using]
To Artifact [a981279a06]:
- File
src/exceptions/OFChangeOwnerFailedException.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 2012) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
18 19 20 21 22 23 24 | #import "OFChangeOwnerFailedException.h" #import "OFString.h" @implementation OFChangeOwnerFailedException @synthesize path = _path, owner = _owner, group = _group, errNo = _errNo; | | | | | | | | 18 19 20 21 22 23 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 | #import "OFChangeOwnerFailedException.h" #import "OFString.h" @implementation OFChangeOwnerFailedException @synthesize path = _path, owner = _owner, group = _group, errNo = _errNo; + (instancetype)exceptionWithPath: (OFString *)path owner: (OFString *)owner group: (OFString *)group errNo: (int)errNo { return [[[self alloc] initWithPath: path owner: owner group: group errNo: errNo] autorelease]; } - init { OF_INVALID_INIT_METHOD } - initWithPath: (OFString *)path owner: (OFString *)owner group: (OFString *)group errNo: (int)errNo { self = [super init]; @try { _path = [path copy]; _owner = [owner copy]; |
︙ | ︙ | |||
63 64 65 66 67 68 69 | [_path release]; [_owner release]; [_group release]; [super dealloc]; } | | | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | [_path release]; [_owner release]; [_group release]; [super dealloc]; } - (OFString *)description { if (_group == nil) return [OFString stringWithFormat: @"Failed to change owner of item at path %@ to %@: %@", _path, _owner, of_strerror(_errNo)]; else if (_owner == nil) return [OFString stringWithFormat: |
︙ | ︙ |