Skip to content

Commit ddf66cd

Browse files
author
Justin Williams
committed
instancetype support.
1 parent 030e72a commit ddf66cd

10 files changed

+11
-11
lines changed

MiscMerge/NSNull.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
- (id)copy;
4545

4646
- (void)encodeWithCoder:(NSCoder *)aCoder;
47-
- (id)initWithCoder:(NSCoder *)aDecoder;
47+
- (instancetype)initWithCoder:(NSCoder *)aDecoder;
4848

4949
- (id)replacementObjectForCoder:(NSCoder *)aCoder;
5050

MiscMerge/_MiscMergeIfCommand.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
@implementation _MiscMergeIfCommand
2525

26-
- (id)init
26+
- (instancetype)init
2727
{
2828
[super init];
2929
trueBlock = [[MiscMergeCommandBlock alloc] initWithOwner:self];

ddcli/DDCliApplication.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ + (DDCliApplication *) sharedApplication;
3939
return DDCliApp;
4040
}
4141

42-
- (id) init;
42+
- (instancetype) init;
4343
{
4444
self = [super init];
4545
if (self == nil)

ddcli/DDCliParseException.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* @param exitCode Desired exit code
5353
* @return New exception
5454
*/
55-
- (id) initWithReason: (NSString *) reason
55+
- (instancetype) initWithReason: (NSString *) reason
5656
exitCode: (int) exitCode;
5757

5858
/**

ddcli/DDCliParseException.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ + (DDCliParseException *) parseExceptionWithReason: (NSString *) reason
3434
exitCode: exitCode] autorelease];
3535
}
3636

37-
- (id) initWithReason: (NSString *) reason
37+
- (instancetype) initWithReason: (NSString *) reason
3838
exitCode: (int) exitCode;
3939
{
4040
self = [super initWithName: NSStringFromClass([self class])

ddcli/DDGetoptLongParser.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ typedef struct
100100
*
101101
* @param target Object that receives target messages.
102102
*/
103-
- (id) initWithTarget: (id) target;
103+
- (instancetype) initWithTarget: (id) target;
104104

105105
/**
106106
* Returns the target object.

ddcli/DDGetoptLongParser.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ + (DDGetoptLongParser *) optionsWithTarget: (id) target
4747
return [[[self alloc] initWithTarget: target] autorelease];
4848
}
4949

50-
- (id) initWithTarget: (id) target
50+
- (instancetype) initWithTarget: (id) target
5151
{
5252
self = [super init];
5353
if (self == nil)

mogenerator.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ @interface MogeneratorTemplateDesc : NSObject {
592592
NSString *templateName;
593593
NSString *templatePath;
594594
}
595-
- (id)initWithName:(NSString*)name_ path:(NSString*)path_;
595+
- (instancetype)initWithName:(NSString*)name_ path:(NSString*)path_;
596596
- (NSString*)templateName;
597597
- (void)setTemplateName:(NSString*)name_;
598598
- (NSString*)templatePath;
@@ -1200,7 +1200,7 @@ - (int)application:(DDCliApplication*)app runWithArguments:(NSArray*)arguments {
12001200

12011201
@implementation MogeneratorTemplateDesc
12021202

1203-
- (id)initWithName:(NSString*)name_ path:(NSString*)path_ {
1203+
- (instancetype)initWithName:(NSString*)name_ path:(NSString*)path_ {
12041204
self = [super init];
12051205
if (self) {
12061206
templateName = [name_ retain];

ponso/MKCDAGNode.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//! All objects of nodes in topological order which are reachable from the receiver.
3535
@property(nonatomic, readonly) NSArray *objectsInTopologicalOrder;
3636

37-
- (id)initWithObject:(id)object;
37+
- (instancetype)initWithObject:(id)object;
3838

3939
/**
4040
Creates dependency between receiver and the given node and adds the given node into the DAG.

ponso/MKCDAGNode.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ + (void)visitNode:(MKCDAGNode *)node visitedNodes:(NSMutableSet *)visitedNodes o
7474

7575
#pragma mark Public
7676

77-
- (id)initWithObject:(id)anObject
77+
- (instancetype)initWithObject:(id)anObject
7878
{
7979
if((self = [super init]))
8080
{

0 commit comments

Comments
 (0)