mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Updated NSUUID to use instancetype.
This commit is contained in:
parent
88f5cc2444
commit
a18bec3a16
2 changed files with 7 additions and 7 deletions
|
@ -50,9 +50,9 @@ typedef uint8_t gsuuid_t[16];
|
|||
gsuuid_t uuid;
|
||||
}
|
||||
|
||||
+ (id)UUID;
|
||||
- (id)initWithUUIDString:(NSString *)string;
|
||||
- (id)initWithUUIDBytes:(gsuuid_t)bytes;
|
||||
+ (instancetype)UUID;
|
||||
- (instancetype)initWithUUIDString:(NSString *)string;
|
||||
- (instancetype)initWithUUIDBytes:(gsuuid_t)bytes;
|
||||
- (NSString *)UUIDString;
|
||||
- (void)getUUIDBytes:(gsuuid_t)bytes;
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ static const int kUUIDByteCount = 16;
|
|||
*/
|
||||
@implementation NSUUID
|
||||
|
||||
+ (id) UUID
|
||||
+ (instancetype) UUID
|
||||
{
|
||||
id u;
|
||||
|
||||
|
@ -51,7 +51,7 @@ static const int kUUIDByteCount = 16;
|
|||
return AUTORELEASE(u);
|
||||
}
|
||||
|
||||
- (id) init
|
||||
- (instancetype) init
|
||||
{
|
||||
gsuuid_t localUUID;
|
||||
int result;
|
||||
|
@ -65,7 +65,7 @@ static const int kUUIDByteCount = 16;
|
|||
return [self initWithUUIDBytes: localUUID];
|
||||
}
|
||||
|
||||
- (id) initWithUUIDString: (NSString *)string
|
||||
- (instancetype) initWithUUIDString: (NSString *)string
|
||||
{
|
||||
gsuuid_t localUUID;
|
||||
const char *cString;
|
||||
|
@ -81,7 +81,7 @@ static const int kUUIDByteCount = 16;
|
|||
return [self initWithUUIDBytes: localUUID];
|
||||
}
|
||||
|
||||
- (id) initWithUUIDBytes: (gsuuid_t)bytes
|
||||
- (instancetype) initWithUUIDBytes: (gsuuid_t)bytes
|
||||
{
|
||||
if (nil != (self = [super init]))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue