Skip to content

Commit

Permalink
instancetype support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Williams committed Aug 24, 2015
1 parent 030e72a commit ddf66cd
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion MiscMerge/NSNull.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
- (id)copy;

- (void)encodeWithCoder:(NSCoder *)aCoder;
- (id)initWithCoder:(NSCoder *)aDecoder;
- (instancetype)initWithCoder:(NSCoder *)aDecoder;

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

Expand Down
2 changes: 1 addition & 1 deletion MiscMerge/_MiscMergeIfCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

@implementation _MiscMergeIfCommand

- (id)init
- (instancetype)init
{
[super init];
trueBlock = [[MiscMergeCommandBlock alloc] initWithOwner:self];
Expand Down
2 changes: 1 addition & 1 deletion ddcli/DDCliApplication.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ + (DDCliApplication *) sharedApplication;
return DDCliApp;
}

- (id) init;
- (instancetype) init;
{
self = [super init];
if (self == nil)
Expand Down
2 changes: 1 addition & 1 deletion ddcli/DDCliParseException.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
* @param exitCode Desired exit code
* @return New exception
*/
- (id) initWithReason: (NSString *) reason
- (instancetype) initWithReason: (NSString *) reason
exitCode: (int) exitCode;

/**
Expand Down
2 changes: 1 addition & 1 deletion ddcli/DDCliParseException.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ + (DDCliParseException *) parseExceptionWithReason: (NSString *) reason
exitCode: exitCode] autorelease];
}

- (id) initWithReason: (NSString *) reason
- (instancetype) initWithReason: (NSString *) reason
exitCode: (int) exitCode;
{
self = [super initWithName: NSStringFromClass([self class])
Expand Down
2 changes: 1 addition & 1 deletion ddcli/DDGetoptLongParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ typedef struct
*
* @param target Object that receives target messages.
*/
- (id) initWithTarget: (id) target;
- (instancetype) initWithTarget: (id) target;

/**
* Returns the target object.
Expand Down
2 changes: 1 addition & 1 deletion ddcli/DDGetoptLongParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ + (DDGetoptLongParser *) optionsWithTarget: (id) target
return [[[self alloc] initWithTarget: target] autorelease];
}

- (id) initWithTarget: (id) target
- (instancetype) initWithTarget: (id) target
{
self = [super init];
if (self == nil)
Expand Down
4 changes: 2 additions & 2 deletions mogenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ @interface MogeneratorTemplateDesc : NSObject {
NSString *templateName;
NSString *templatePath;
}
- (id)initWithName:(NSString*)name_ path:(NSString*)path_;
- (instancetype)initWithName:(NSString*)name_ path:(NSString*)path_;
- (NSString*)templateName;
- (void)setTemplateName:(NSString*)name_;
- (NSString*)templatePath;
Expand Down Expand Up @@ -1200,7 +1200,7 @@ - (int)application:(DDCliApplication*)app runWithArguments:(NSArray*)arguments {

@implementation MogeneratorTemplateDesc

- (id)initWithName:(NSString*)name_ path:(NSString*)path_ {
- (instancetype)initWithName:(NSString*)name_ path:(NSString*)path_ {
self = [super init];
if (self) {
templateName = [name_ retain];
Expand Down
2 changes: 1 addition & 1 deletion ponso/MKCDAGNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
//! All objects of nodes in topological order which are reachable from the receiver.
@property(nonatomic, readonly) NSArray *objectsInTopologicalOrder;

- (id)initWithObject:(id)object;
- (instancetype)initWithObject:(id)object;

/**
Creates dependency between receiver and the given node and adds the given node into the DAG.
Expand Down
2 changes: 1 addition & 1 deletion ponso/MKCDAGNode.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ + (void)visitNode:(MKCDAGNode *)node visitedNodes:(NSMutableSet *)visitedNodes o

#pragma mark Public

- (id)initWithObject:(id)anObject
- (instancetype)initWithObject:(id)anObject
{
if((self = [super init]))
{
Expand Down

0 comments on commit ddf66cd

Please sign in to comment.