Permalink
Browse files

Fixing static analyzer warnings.

  • Loading branch information...
ksuther committed Mar 8, 2011
1 parent 747c462 commit 79b6cfec9b025b8477a355e130db75071a14dd19
Showing with 2 additions and 2 deletions.
  1. +1 −1 WarpDefaults.m
  2. +1 −1 WarpPreferences.m
View
@@ -28,7 +28,7 @@ @implementation WarpDefaults
- (id)init
{
- if ([super init]) {
+ if ( (self = [super init]) ) {
if ([[NSUserDefaults standardUserDefaults] persistentDomainForName:WarpBundleIdentifier] == nil) {
NSDictionary *defaultSettings = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithDouble:0.75], @"Delay",
[NSNumber numberWithBool:NO], @"WarpMouse",
View
@@ -52,7 +52,7 @@ @implementation WarpPreferences
- (id)initWithBundle:(NSBundle *)bundle
{
- if ([super initWithBundle:bundle]) {
+ if ( (self = [super initWithBundle:bundle]) ) {
defaults = [[WarpDefaults alloc] init];
_updateResponseData = [[NSMutableData alloc] init];
}

0 comments on commit 79b6cfe

Please sign in to comment.