Remove another pair of keyed subscript access instances

This commit is contained in:
Blake Watters
2012-12-10 17:18:00 -05:00
parent 5efcfe2c41
commit 3fe377c03a
2 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ static RKManagedObjectStore *defaultStore = nil;
NSDictionary *options = nil;
if (nilOrOptions) {
NSMutableDictionary *mutableOptions = [nilOrOptions mutableCopy];
mutableOptions[RKSQLitePersistentStoreSeedDatabasePathOption] = seedPath ?: [NSNull null];
[mutableOptions setObject:(seedPath ?: [NSNull null]) forKey:RKSQLitePersistentStoreSeedDatabasePathOption];
options = mutableOptions;
} else {
options = @{ RKSQLitePersistentStoreSeedDatabasePathOption: (seedPath ?: [NSNull null]),

View File

@@ -190,8 +190,8 @@ NSString * const RKMappingTestVerificationFailureException = @"RKMappingTestVeri
reason:(NSString *)reason
{
NSMutableDictionary *fullUserInfo = [userInfo mutableCopy];
fullUserInfo[NSLocalizedDescriptionKey] = description;
fullUserInfo[NSLocalizedFailureReasonErrorKey] = reason;
[fullUserInfo setObject:description forKey:NSLocalizedDescriptionKey];
[fullUserInfo setObject:reason forKey:NSLocalizedFailureReasonErrorKey];
return [NSError errorWithDomain:RKMappingTestErrorDomain code:errorCode userInfo:fullUserInfo];
}