Skip to content

Commit

Permalink
Fix issues identified by uncrustify's "sp_assign = add" option. Refs R…
Browse files Browse the repository at this point in the history
  • Loading branch information
jawwad committed Jun 4, 2012
1 parent 2cf60ff commit 746f31c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Code/Network/RKResponse.m
Expand Up @@ -150,9 +150,9 @@ - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallen

if ([challenge previousFailureCount] == 0) {
NSURLCredential *newCredential;
newCredential=[NSURLCredential credentialWithUser:[NSString stringWithFormat:@"%@", _request.username]
password:[NSString stringWithFormat:@"%@", _request.password]
persistence:NSURLCredentialPersistenceNone];
newCredential = [NSURLCredential credentialWithUser:[NSString stringWithFormat:@"%@", _request.username]
password:[NSString stringWithFormat:@"%@", _request.password]
persistence:NSURLCredentialPersistenceNone];
[[challenge sender] useCredential:newCredential
forAuthenticationChallenge:challenge];
} else {
Expand Down
2 changes: 1 addition & 1 deletion Code/Support/NSString+RKAdditions.m
Expand Up @@ -73,7 +73,7 @@ - (NSDictionary*)queryParametersUsingArrays:(BOOL)shouldUseArrays encoding:(NSSt
NSString *stringToParse = self;
NSRange chopRange = [stringToParse rangeOfString:@"?"];
if (chopRange.length > 0) {
chopRange.location+=1; // we want inclusive chopping up *through* "?"
chopRange.location += 1; // we want inclusive chopping up *through* "?"
if (chopRange.location < [stringToParse length])
stringToParse = [stringToParse substringFromIndex:chopRange.location];
}
Expand Down
8 changes: 4 additions & 4 deletions Code/Support/RKPathMatcher.m
Expand Up @@ -62,10 +62,10 @@ @interface RKPathMatcher ()
@end

@implementation RKPathMatcher
@synthesize socPattern=socPattern_;
@synthesize sourcePath=sourcePath_;
@synthesize rootPath=rootPath_;
@synthesize queryParameters=queryParameters_;
@synthesize socPattern = socPattern_;
@synthesize sourcePath = sourcePath_;
@synthesize rootPath = rootPath_;
@synthesize queryParameters = queryParameters_;

- (id)copyWithZone:(NSZone *)zone {
RKPathMatcher* copy = [[[self class] allocWithZone:zone] init];
Expand Down
4 changes: 2 additions & 2 deletions Tests/Logic/CoreData/RKManagedObjectMappingOperationTest.m
Expand Up @@ -445,7 +445,7 @@ - (void)testMappingAPayloadContainingRepeatedObjectsPerformsAcceptablyWithFetchR
RKLogConfigureByName("RestKit/CoreData", RKLogLevelOff);

[RKBenchmark report:@"Mapping with Fetch Request Cache" executionBlock:^{
for (NSUInteger i=0; i<50; i++) {
for (NSUInteger i = 0; i < 50; i++) {
[mapper performMapping];
}
}];
Expand Down Expand Up @@ -480,7 +480,7 @@ - (void)testMappingAPayloadContainingRepeatedObjectsPerformsAcceptablyWithInMemo
RKLogConfigureByName("RestKit/CoreData", RKLogLevelOff);

[RKBenchmark report:@"Mapping with In Memory Cache" executionBlock:^{
for (NSUInteger i=0; i<50; i++) {
for (NSUInteger i = 0; i < 50; i++) {
[mapper performMapping];
}
}];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Logic/Network/RKClientTest.m
Expand Up @@ -139,7 +139,7 @@ - (void)testShouldPerformAPUTWithParams {
return;
RKClient* client = [RKClient clientWithBaseURLString:@"http://ohblockhero.appspot.com/api/v1"];
client.cachePolicy = RKRequestCachePolicyNone;
RKParams *params=[RKParams params];
RKParams *params = [RKParams params];
[params setValue:@"username" forParam:@"username"];
[params setValue:@"Dear Daniel" forParam:@"fullName"];
[params setValue:@"aa@aa.com" forParam:@"email"];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Logic/ObjectMapping/RKObjectMappingNextGenTest.m
Expand Up @@ -507,7 +507,7 @@ - (void)testShouldMapANestedArrayOfObjectsWithDynamicKeysAndSetRelationships {
assertThat(group.name, is(equalTo(@"restkit")));


NSSortDescriptor * sortByName =[[[NSSortDescriptor alloc] initWithKey:@"name" ascending:YES] autorelease];
NSSortDescriptor * sortByName = [[[NSSortDescriptor alloc] initWithKey:@"name" ascending:YES] autorelease];
NSArray * descriptors = [NSArray arrayWithObject:sortByName];;
NSArray * users = [group.users sortedArrayUsingDescriptors:descriptors];
RKTestUser* user = [users objectAtIndex:0];
Expand Down

0 comments on commit 746f31c

Please sign in to comment.