Skip to content

Commit 22b77cd

Browse files
committed
avoid compiler warnings
1 parent dc298a4 commit 22b77cd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/NSData.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ - (instancetype) initWithContentsOfFile: (NSString *)path
10971097
*/
10981098
- (id) initWithContentsOfFile: (NSString*)path
10991099
{
1100-
return [self initWithContentsOfFile: path options: 0 error: nil];
1100+
return [self initWithContentsOfFile: path options: 0 error: NULL];
11011101
}
11021102

11031103
/**
@@ -1123,7 +1123,7 @@ - (id) initWithContentsOfMappedFile: (NSString *)path
11231123
*/
11241124
- (id) initWithContentsOfURL: (NSURL*)url
11251125
{
1126-
return [self initWithContentsOfURL: url options: 0 error: nil];
1126+
return [self initWithContentsOfURL: url options: 0 error: NULL];
11271127
}
11281128

11291129
/**
@@ -2576,7 +2576,7 @@ + (id) dataWithContentsOfMappedFile: (NSString*)path
25762576

25772577
+ (id) dataWithContentsOfURL: (NSURL*)url
25782578
{
2579-
return [NSMutableData dataWithContentsOfURL: url options:0 error: nil];
2579+
return [NSMutableData dataWithContentsOfURL: url options:0 error: NULL];
25802580
}
25812581

25822582
+ (id) dataWithContentsOfURL: (NSURL*)url

0 commit comments

Comments
 (0)