Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up some analyser complaints, and a potential memory leak.

  • Loading branch information...
commit 554c31e9d164b5f2c4f7f8de85729c4b6989f13a 1 parent 877d17a
@beelsebob authored
Showing with 3 additions and 4 deletions.
  1. +0 −1  Stash/STAAppDelegate.m
  2. +3 −3 Stash/STADocSet.m
View
1  Stash/STAAppDelegate.m
@@ -313,7 +313,6 @@ - (void)readExistingIndexes
if (appSupportDirectoryIsPresent && !isDir)
{
NSLog(@"Could not create app support directory – a file is in the way");
- appSupportDirectoryIsPresent = NO;
}
else if (!appSupportDirectoryIsPresent)
{
View
6 Stash/STADocSet.m
@@ -137,7 +137,7 @@ - (void)processURL:(NSURL *)url
success = [scanner scanUpToString:@"/" intoString:&dump];
[scanner setScanLocation:[scanner scanLocation] + 1];
if (!success) { continue; }
- success = [scanner scanUpToString:@"/" intoString:&symbol];
+ [scanner scanUpToString:@"/" intoString:&symbol];
NSString *fullPath = [path stringByAppendingFormat:@"#%@", n];
s = [[STASymbol alloc] initWithLanguageString:nil symbolTypeString:nil symbolName:symbol url:[NSURL URLWithString:fullPath] docSet:self];
}
@@ -149,12 +149,12 @@ - (void)processURL:(NSURL *)url
success = [scanner scanUpToString:@"/" intoString:&symbolType];
[scanner setScanLocation:[scanner scanLocation] + 1];
if (!success) { continue; }
- success = [scanner scanUpToString:@"/" intoString:&parent];
+ [scanner scanUpToString:@"/" intoString:&parent];
NSString *fullPath = [path stringByAppendingFormat:@"#%@", n];
if ([scanner scanLocation] < [n length] - 1)
{
[scanner setScanLocation:[scanner scanLocation] + 1];
- success = [scanner scanUpToString:@"/" intoString:&symbol];
+ [scanner scanUpToString:@"/" intoString:&symbol];
s = [[STASymbol alloc] initWithLanguageString:language symbolTypeString:symbolType symbolName:symbol parentName:parent url:[NSURL URLWithString:fullPath] docSet:self];
}
else
Please sign in to comment.
Something went wrong with that request. Please try again.