Permalink
Browse files

Fix issues reported by Xcode's build and analyze

Using the LLVM GCC 4.2 compiler.
  • Loading branch information...
brotherbard committed Jul 25, 2010
1 parent 28f4c49 commit 9e3e2725c0f3a575d6dc6e569bfcb20be9caf525
Showing with 2 additions and 2 deletions.
  1. +1 −1 DBPrefsWindowController.m
  2. +1 −1 PBGitRevisionCell.m
@@ -370,7 +370,7 @@ - (void)animationDidEnd:(NSAnimation *)animation
NSEnumerator *subviewsEnum = [[contentSubview subviews] reverseObjectEnumerator];
// This is our visible view. Just get past it.
- subview = [subviewsEnum nextObject];
+ [subviewsEnum nextObject];
// Remove everything else. There should be just one, but
// if the user does a lot of fast clicking, we might have
View
@@ -208,7 +208,7 @@ - (void) drawRefsInRect: (NSRect *)refRect
{
[[NSColor blackColor] setStroke];
- NSRect lastRect;
+ NSRect lastRect = NSMakeRect(0, 0, 0, 0);
int index = 0;
for (NSValue *rectValue in [self rectsForRefsinRect:*refRect])
{

0 comments on commit 9e3e272

Please sign in to comment.