mirror of
https://github.com/samsonjs/arq_restore.git
synced 2026-04-27 15:07:44 +00:00
fixed compiler warning about setting an NSMutableSet pointer to an NSSet
This commit is contained in:
parent
056002c5b9
commit
cd64ca1dae
1 changed files with 3 additions and 6 deletions
9
Commit.m
9
Commit.m
|
|
@ -50,9 +50,9 @@ bucketXMLData = _bucketXMLData;
|
||||||
_author = [[theCommit author] copy];
|
_author = [[theCommit author] copy];
|
||||||
_comment = [[theCommit comment] copy];
|
_comment = [[theCommit comment] copy];
|
||||||
if (theParentBlobKey != nil) {
|
if (theParentBlobKey != nil) {
|
||||||
_parentCommitBlobKeys = [[NSSet alloc] initWithObjects:theParentBlobKey, nil];
|
_parentCommitBlobKeys = [[NSMutableSet alloc] initWithObjects:theParentBlobKey, nil];
|
||||||
} else {
|
} else {
|
||||||
_parentCommitBlobKeys = [[NSSet alloc] init];
|
_parentCommitBlobKeys = [[NSMutableSet alloc] init];
|
||||||
}
|
}
|
||||||
_treeBlobKey = [[theCommit treeBlobKey] copy];
|
_treeBlobKey = [[theCommit treeBlobKey] copy];
|
||||||
_location = [[theCommit location] copy];
|
_location = [[theCommit location] copy];
|
||||||
|
|
@ -76,7 +76,7 @@ bucketXMLData = _bucketXMLData;
|
||||||
if (self = [super init]) {
|
if (self = [super init]) {
|
||||||
_author = [theAuthor copy];
|
_author = [theAuthor copy];
|
||||||
_comment = [theComment copy];
|
_comment = [theComment copy];
|
||||||
_parentCommitBlobKeys = [[NSSet alloc] initWithSet:theParentCommitBlobKeys];
|
_parentCommitBlobKeys = [[NSMutableSet alloc] initWithSet:theParentCommitBlobKeys];
|
||||||
_treeBlobKey = [theTreeBlobKey retain];
|
_treeBlobKey = [theTreeBlobKey retain];
|
||||||
_location = [theLocation copy];
|
_location = [theLocation copy];
|
||||||
NSRange computerRange = [_location rangeOfRegex:@"^file://([^/]+)/" capture:1];
|
NSRange computerRange = [_location rangeOfRegex:@"^file://([^/]+)/" capture:1];
|
||||||
|
|
@ -205,9 +205,6 @@ init_error:
|
||||||
init_done:
|
init_done:
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
- (void)release {
|
|
||||||
[super release];
|
|
||||||
}
|
|
||||||
- (void)dealloc {
|
- (void)dealloc {
|
||||||
[_author release];
|
[_author release];
|
||||||
[_comment release];
|
[_comment release];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue